Skip to content

Commit 6482e03

Browse files
committed
fix: anthropic image error
1 parent 3e90a9f commit 6482e03

File tree

1 file changed

+1
-1
lines changed
  • apps/setting/models_provider/impl/anthropic_model_provider/credential

1 file changed

+1
-1
lines changed

apps/setting/models_provider/impl/anthropic_model_provider/credential/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
4848
return False
4949
try:
5050
model = provider.get_model(model_type, model_name, model_credential)
51-
res = model.stream([HumanMessage(content=[{"type": "text", "text": _("Hello")}])])
51+
res = model.stream([HumanMessage(content=[{"type": "text", "text": gettext("Hello")}])])
5252
for chunk in res:
5353
print(chunk)
5454
except Exception as e:

0 commit comments

Comments
 (0)