# Custom tool throws error \`ValueError: Invalid response from LLM call - None or empty\`

**URL:** <https://community.crewai.com/t/custom-tool-throws-error-valueerror-invalid-response-from-llm-call-none-or-empty/1853>\
**Category:** CrewAI Community Support\
**Created:** [December 5, 2024, 3:08pm UTC](https://community.crewai.com/t/custom-tool-throws-error-valueerror-invalid-response-from-llm-call-none-or-empty/1853 "2024-12-05T15:08:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![frieda-huang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/frieda-huang/32/1295_2.png) [@frieda-huang](https://community.crewai.com/u/frieda-huang)\
**Post date:** [December 6, 2024, 1:11am UTC](https://community.crewai.com/t/custom-tool-throws-error-valueerror-invalid-response-from-llm-call-none-or-empty/1853/2 "2024-12-06T01:11:54Z")

</div>

I switched from `claude-3-5-sonnet-20241022` to `gpt-4o` and it now works!  
Is there a way we can have a fallback option where if one model fails to accomplish the task, another equally or more capable model can pick it up? I belive LiteLLM has this feature ([Reliability - Retries, Fallbacks | liteLLM](https://docs.litellm.ai/docs/completion/reliable_completions#how-does-completion_with_fallbacks-work))

---

_[View the full topic](https://community.crewai.com/t/custom-tool-throws-error-valueerror-invalid-response-from-llm-call-none-or-empty/1853)._
