Hey CrewAi team,
Can someone please prioritize this error? I’m noticing that multiple users of crewai are also running into the same issue when using open-source LLMs.
Here’s the problem:
Everything works perfectly end-to-end when using OpenAI’s GPT models.
But the moment I switch to models like Qwen, LLaMA 3.1, DeepSeek, or Mistral, I hit an LLM response error…
Error I am getting:
Received None or empty response from LLM call.
** An unknown error occurred. Please check the details below.**
** Error details: Invalid response from LLM call - None or empty.**
** An unknown error occurred. Please check the details below.**
** Error details: Invalid response from LLM call - None or empty.**
2025-03-06 11:15:07,059 - ERROR - Error in rag_fucntion: Invalid response from LLM call - None or empty.
Traceback (most recent call last):
File “/home/sranjan710/miniconda3/envs/py310prod/lib/python3.10/site-packages/crewai/agent.py”, line 248, in execute_task
result = self.agent_executor.invoke(
File “/home/sranjan710/miniconda3/envs/py310prod/lib/python3.10/site-packages/crewai/agents/crew_agent_executor.py”, line 115, in invoke
raise e
File “/home/sranjan710/miniconda3/envs/py310prod/lib/python3.10/site-packages/crewai/agents/crew_agent_executor.py”, line 102, in invoke
formatted_answer = self._invoke_loop()
File “/home/sranjan710/miniconda3/envs/py310prod/lib/python3.10/site-packages/crewai/agents/crew_agent_executor.py”, line 166, in _invoke_loop
raise e
File “/home/sranjan710/miniconda3/envs/py310prod/lib/python3.10/site-packages/crewai/agents/crew_agent_executor.py”, line 140, in _invoke_loop
answer = self._get_llm_response()
File “/home/sranjan710/miniconda3/envs/py310prod/lib/python3.10/site-packages/crewai/agents/crew_agent_executor.py”, line 217, in _get_llm_response
raise ValueError(“Invalid response from LLM call - None or empty.”)
ValueError: Invalid response from LLM call - None or empty.
Please look into this error on priority. Right now, it feels pointless to have so many LLM providers if 95% of their models aren’t working with CrewAI Agents.
Thanks,
Sumit