Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Sep 11, 2024
1 parent 747e5af commit 871d43e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/core/model_runtime/model_providers/__base/ai_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def _transform_invoke_error(self, error: Exception) -> InvokeError:
if isinstance(error, tuple(model_errors)):
if invoke_error == InvokeAuthorizationError:
return invoke_error(
description=f"[{provider_name}] Incorrect model credentials provided,"
f" please check and try again. "
description=(
f"[{provider_name}] Incorrect model credentials provided, please check and try again."
)
)

return invoke_error(description=f"[{provider_name}] {invoke_error.description}, {str(error)}")
Expand Down

0 comments on commit 871d43e

Please sign in to comment.