From bae0c071cd2997a46bbf0dd33a84d8948ddc314b Mon Sep 17 00:00:00 2001 From: Jat Date: Tue, 9 Apr 2024 12:11:53 +0800 Subject: [PATCH] Fix: remove unavailable return_preamble parameter in cohere (#3201) Signed-off-by: Jat --- api/core/model_runtime/model_providers/cohere/llm/llm.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/core/model_runtime/model_providers/cohere/llm/llm.py b/api/core/model_runtime/model_providers/cohere/llm/llm.py index 50805bce85..364e4d84ef 100644 --- a/api/core/model_runtime/model_providers/cohere/llm/llm.py +++ b/api/core/model_runtime/model_providers/cohere/llm/llm.py @@ -297,7 +297,6 @@ class CohereLargeLanguageModel(LargeLanguageModel): chat_history=chat_histories, model=real_model, stream=stream, - return_preamble=True, **model_parameters, )