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:
Tomoya Kawaguchi 2025-10-10 20:44:31 +09:00 committed by GitHub
parent 632c39962c
commit a194ca65d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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