瀏覽代碼

fix: invoke_error is not callable (#15555)

Co-authored-by: 刘江波 <jiangbo721@163.com>
tags/1.1.0
jiangbo721 7 月之前
父節點
當前提交
037f200527
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/core/model_runtime/model_providers/__base/ai_model.py

+ 1
- 1
api/core/model_runtime/model_providers/__base/ai_model.py 查看文件

@@ -80,7 +80,7 @@ class AIModel(BaseModel):
)
)
elif isinstance(invoke_error, InvokeError):
return invoke_error(description=f"[{self.provider_name}] {invoke_error.description}, {str(error)}")
return InvokeError(description=f"[{self.provider_name}] {invoke_error.description}, {str(error)}")
else:
return error


Loading…
取消
儲存