# Error: llm.py-llm:426 - ERROR: Failed to get supported params: argument of type 'NoneType' is not iterable

**URL:** <https://community.crewai.com/t/error-llm-py-llm-426-error-failed-to-get-supported-params-argument-of-type-nonetype-is-not-iterable/3915>\
**Category:** LLMs\
**Tags:** llama-31-8b\
**Created:** [February 17, 2025, 11:29am UTC](https://community.crewai.com/t/error-llm-py-llm-426-error-failed-to-get-supported-params-argument-of-type-nonetype-is-not-iterable/3915 "2025-02-17T11:29:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj3](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Raj3](https://community.crewai.com/u/Raj3)\
**Post date:** [February 17, 2025, 11:29am UTC](https://community.crewai.com/t/error-llm-py-llm-426-error-failed-to-get-supported-params-argument-of-type-nonetype-is-not-iterable/3915/1 "2025-02-17T11:29:25Z")

</div>

Getting the above error when trying to use integrate Groq\_llm into agents

```python
from crewai import Agent, Task, Crew, Process, LLM
from crewai_tools import SerperDevTool

groq_llm=LLM(model="llama3-8b-8192",
            temperature=0.3,
            groq_api_key=api_key,
            base_url="https://api.groq.com/openai/v1"            
            )

researcher = Agent(
                llm=groq_llm,
                role="Senior Researcher",
                goal="Explore and analyze emerging and transformative technologies in {topic} to drive innovation and discovery.",
                verbose=True,
                memory=True,
                backstory = """
                            Driven by curiosity and innovation, you uncover groundbreaking insights, exploring new frontiers that shape the future.
                            """,
                tools=[search_tool],
                respect_context_window=True,
                cache=True,
                allow_delegation=True ) 

```

Can anyone help me to get out of the error?

---

<div class="post-metadata">

**Author:** ![tonykipkemboi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tonykipkemboi/32/4070_2.png) [@tonykipkemboi](https://community.crewai.com/u/tonykipkemboi)\
**Post date:** [February 18, 2025, 7:26pm UTC](https://community.crewai.com/t/error-llm-py-llm-426-error-failed-to-get-supported-params-argument-of-type-nonetype-is-not-iterable/3915/2 "2025-02-18T19:26:55Z")

</div>

Structure this way:

```python
from crewai import Agent, Task, Crew, Process, LLM
from crewai_tools import SerperDevTool

groq_llm=LLM(model="groq/llama3-8b-8192",
            temperature=0.3,
            groq_api_key=api_key         
            )

researcher = Agent(
                llm=groq_llm,
                role="Senior Researcher",
                goal="Explore and analyze emerging and transformative technologies in {topic} to drive innovation and discovery.",
                verbose=True,
                memory=True,
                backstory = """
                            Driven by curiosity and innovation, you uncover groundbreaking insights, exploring new frontiers that shape the future.
                            """,
                tools=[search_tool],
                respect_context_window=True,
                cache=True,
                allow_delegation=True ) 

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/1X/ecda97e72f77c7100e0a761444b1c991925cc789.png) [@system](https://community.crewai.com/u/system)\
**Post date:** [March 19, 2025, 11:29am UTC](https://community.crewai.com/t/error-llm-py-llm-426-error-failed-to-get-supported-params-argument-of-type-nonetype-is-not-iterable/3915/3 "2025-03-19T11:29:50Z")

</div>

This topic was automatically closed after 30 days. New replies are no longer allowed.
