From 25b93985e554afcd62cce25d4a7b838b5a1993f6 Mon Sep 17 00:00:00 2001 From: Simone Garau <20005068@studenti.uniupo.it> Date: Fri, 19 Sep 2025 11:55:14 +0200 Subject: [PATCH] =?UTF-8?q?Inserito=20ollama=20fra=20le=20possibilit=C3=A0?= =?UTF-8?q?=20usando=20il=20modello=20gpt-oss:latest.=20La=20risposta=20di?= =?UTF-8?q?=20ollama=20=C3=A8=20parsificata=20male,=20vede=20anche=20il=20?= =?UTF-8?q?thinking=20del=20modello?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.py | 2 +- src/app/agents/predictor_agent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index 1ea3e06..459ab0a 100644 --- a/src/app.py +++ b/src/app.py @@ -14,7 +14,7 @@ with gr.Blocks() as demo: with gr.Row(): provider = gr.Dropdown( - choices=["mock", "openai", "anthropic", "google", "deepseek"], + choices=["mock", "openai", "anthropic", "google", "deepseek", "ollama"], value="mock", label="Modello da usare" ) diff --git a/src/app/agents/predictor_agent.py b/src/app/agents/predictor_agent.py index f8f8011..6609882 100644 --- a/src/app/agents/predictor_agent.py +++ b/src/app/agents/predictor_agent.py @@ -14,7 +14,7 @@ class PredictorAgent: def __init__(self): # Ollama via HTTP locale self.providers = { - "ollama": {"type": "ollama", "host": os.getenv("OLLAMA_HOST", "http://localhost:11434"), "model": "llama3"} + "ollama": {"type": "ollama", "host": os.getenv("OLLAMA_HOST", "http://localhost:11434"), "model": "gpt-oss:latest"} } # OpenAI