mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix(model_providers/ollama): Fix OllamaLargeLanguageModel to correctly set the stop option (#5217)
This commit is contained in:
parent
b7ff765d8d
commit
7f44e88eda
|
@ -195,7 +195,7 @@ class OllamaLargeLanguageModel(LargeLanguageModel):
|
|||
data["options"] = model_parameters or {}
|
||||
|
||||
if stop:
|
||||
data["stop"] = "\n".join(stop)
|
||||
data["options"]["stop"] = stop
|
||||
|
||||
completion_type = LLMMode.value_of(credentials["mode"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user