mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08: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 {}
|
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"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user