mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-17 11:35:58 +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 {}
|
data["options"] = model_parameters or {}
|
||||||
|
|
||||||
if stop:
|
if stop:
|
||||||
data["stop"] = "\n".join(stop)
|
data["options"]["stop"] = stop
|
||||||
|
|
||||||
completion_type = LLMMode.value_of(credentials["mode"])
|
completion_type = LLMMode.value_of(credentials["mode"])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user