mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
chore: add original exception
This commit is contained in:
parent
be93651db8
commit
632c39962c
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ async def retry_with_fallback_models(f: Callable, model_type: ModelType = ModelT
|
|||
f"Failed to generate prediction with {model}: {e}",
|
||||
)
|
||||
if i == len(all_models) - 1: # If it's the last iteration
|
||||
raise Exception(f"Failed to generate prediction with any model of {all_models}")
|
||||
raise Exception(f"Failed to generate prediction with any model of {all_models}") from e
|
||||
|
||||
|
||||
def _get_all_models(model_type: ModelType = ModelType.REGULAR) -> List[str]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue