mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 00:02:36 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user