This commit is contained in:
1 parent
6dc8c42caa
commit
6d9fd2f2a2
1 file changed
+1
-1
@@ -248,7 +248,7 @@ def call_ollama(model_name, prompt_text):
|
|||||||
res = requests.post(
|
res = requests.post(
|
||||||
"http://host.docker.internal:11434/api/generate",
|
"http://host.docker.internal:11434/api/generate",
|
||||||
json={"model": model_name, "prompt": prompt_text, "stream": False},
|
json={"model": model_name, "prompt": prompt_text, "stream": False},
|
||||||
timeout=60
|
timeout=None
|
||||||
)
|
)
|
||||||
data = res.json()
|
data = res.json()
|
||||||
if "response" in data:
|
if "response" in data:
|
||||||
|
|||||||
Reference in new issue
Block a user