mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 22:33:56 +00:00
interactive generate
This commit is contained in:
@@ -27,7 +27,7 @@ def generate(model, prompt, models_home=".", llms={}, *args, **kwargs):
|
||||
kwargs.update({"max_tokens": 16384})
|
||||
|
||||
if "stop" not in kwargs:
|
||||
kwargs.update({"stop": ["Q:", "\n"]})
|
||||
kwargs.update({"stop": ["Q:"]})
|
||||
|
||||
if "stream" not in kwargs:
|
||||
kwargs.update({"stream": True})
|
||||
|
||||
Reference in New Issue
Block a user