Skip to content

Commit

Permalink
fix: i18n azure llm mode
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Jan 24, 2025
1 parent b97ffa9 commit a546ffc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
return False
try:
model = provider.get_model(model_type, model_name, model_credential, **model_params)
model.invoke([HumanMessage(content=_('Hello'))])
model.invoke([HumanMessage(content=gettext('Hello'))])
except Exception as e:
if isinstance(e, AppApiException):
raise e
Expand Down

0 comments on commit a546ffc

Please sign in to comment.