fix: resolve CI failures for fallback LLM implementation

- Fix type checker error by adding None check before raising last_exception
- Fix ContextWindowExceededError constructor with correct signature (message, model, llm_provider)
- Update auth error test assertion to match new print message format

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-06-19 06:13:44 +00:00
parent 06e2683fd8
commit bfe3931dcd
3 changed files with 8 additions and 3 deletions

View File

@@ -187,7 +187,10 @@ def get_llm_response(
continue
printer.print(content="All LLMs failed, raising last exception", color="red")
raise last_exception
if last_exception is not None:
raise last_exception
else:
raise RuntimeError("All LLMs failed but no exception was captured")
def process_llm_response(