mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
Update pr_agent/algo/pr_processing.py
Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
This commit is contained in:
parent
632c39962c
commit
a194ca65d2
1 changed files with 2 additions and 1 deletions
|
|
@ -331,7 +331,8 @@ async def retry_with_fallback_models(f: Callable, model_type: ModelType = ModelT
|
||||||
return await f(model)
|
return await f(model)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
get_logger().warning(
|
get_logger().warning(
|
||||||
f"Failed to generate prediction with {model}: {e}",
|
f"Failed to generate prediction with {model}",
|
||||||
|
artifact={"error": e},
|
||||||
)
|
)
|
||||||
if i == len(all_models) - 1: # If it's the last iteration
|
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}") from e
|
raise Exception(f"Failed to generate prediction with any model of {all_models}") from e
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue