Skip to content

Commit 48dce6c

Browse files
committed
fix: i18n azure llm mode
1 parent b97ffa9 commit 48dce6c

File tree

2 files changed

+2
-2
lines changed
  • apps/setting/models_provider/impl
    • aws_bedrock_model_provider/credential
    • azure_model_provider/credential

2 files changed

+2
-2
lines changed

apps/setting/models_provider/impl/aws_bedrock_model_provider/credential/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
4949

5050
try:
5151
model = provider.get_model(model_type, model_name, model_credential, **model_params)
52-
model.invoke([HumanMessage(content=_('Hello'))])
52+
model.invoke([HumanMessage(content=gettext('Hello'))])
5353
except AppApiException:
5454
raise
5555
except Exception as e:

apps/setting/models_provider/impl/azure_model_provider/credential/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
5353
return False
5454
try:
5555
model = provider.get_model(model_type, model_name, model_credential, **model_params)
56-
model.invoke([HumanMessage(content=_('Hello'))])
56+
model.invoke([HumanMessage(content=gettext('Hello'))])
5757
except Exception as e:
5858
if isinstance(e, AppApiException):
5959
raise e

0 commit comments

Comments
 (0)