mirror of
https://github.com/langgenius/dify.git
synced 2026-03-06 06:35:24 -05:00
fix(model_providers/ollama): Fix OllamaLargeLanguageModel to correctly set the stop option (#5217)
This commit is contained in:
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user