From e61f5d029ae7e920ebb16e81f2338a815041adda Mon Sep 17 00:00:00 2001 From: kurokobo Date: Thu, 13 Jun 2024 18:36:01 +0900 Subject: [PATCH] chore(docs): fix minor small typos (#5124) --- api/core/model_runtime/docs/en_US/interfaces.md | 2 +- api/core/model_runtime/docs/zh_Hans/interfaces.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/model_runtime/docs/en_US/interfaces.md b/api/core/model_runtime/docs/en_US/interfaces.md index dc70bfad17..1fb20e5b04 100644 --- a/api/core/model_runtime/docs/en_US/interfaces.md +++ b/api/core/model_runtime/docs/en_US/interfaces.md @@ -336,7 +336,7 @@ Inherit the `__base.text2speech_model.Text2SpeechModel` base class and implement - Invoke Invocation ```python - def _invoke(elf, model: str, credentials: dict, content_text: str, streaming: bool, user: Optional[str] = None): + def _invoke(self, model: str, credentials: dict, content_text: str, streaming: bool, user: Optional[str] = None): """ Invoke large language model diff --git a/api/core/model_runtime/docs/zh_Hans/interfaces.md b/api/core/model_runtime/docs/zh_Hans/interfaces.md index 743e575ded..78086cc328 100644 --- a/api/core/model_runtime/docs/zh_Hans/interfaces.md +++ b/api/core/model_runtime/docs/zh_Hans/interfaces.md @@ -376,7 +376,7 @@ class XinferenceProvider(Provider): - Invoke 调用 ```python - def _invoke(elf, model: str, credentials: dict, content_text: str, streaming: bool, user: Optional[str] = None): + def _invoke(self, model: str, credentials: dict, content_text: str, streaming: bool, user: Optional[str] = None): """ Invoke large language model