mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: anthropic image error
This commit is contained in:
parent
3e90a9f102
commit
6482e030ee
|
|
@ -48,7 +48,7 @@ class AnthropicImageModelCredential(BaseForm, BaseModelCredential):
|
|||
return False
|
||||
try:
|
||||
model = provider.get_model(model_type, model_name, model_credential)
|
||||
res = model.stream([HumanMessage(content=[{"type": "text", "text": _("Hello")}])])
|
||||
res = model.stream([HumanMessage(content=[{"type": "text", "text": gettext("Hello")}])])
|
||||
for chunk in res:
|
||||
print(chunk)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in New Issue