From 4db64e42cb2feabdce2cf898306944b5f20e1598 Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Wed, 4 Mar 2026 17:07:20 +0000 Subject: [PATCH] main.py aktualisiert --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3bd27f9..4069fab 100644 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ SSH_KEY = os.path.expanduser("~/.ssh/id_rsa") DB_PATH = "cluster.db" # --- KI KONFIGURATION --- -AI_PROVIDER = "ollama" # "openai", "google" oder "ollama" +AI_PROVIDER = "google" # "openai", "google" oder "ollama" OPENAI_API_KEY = "dein-key" GOOGLE_API_KEY = "dein-key" OLLAMA_BASE_URL = "http://x.x.x.x:11434/v1" # IP deines Ollama-Servers @@ -69,7 +69,7 @@ async def get_ai_response(user_input, system_prompt): # <--- system_prompt hinzu model='gemini-2.5-flash', contents=user_input, config=types.GenerateContentConfig( - system_instruction=SYSTEM_PROMPT + system_instruction=system_prompt ) ) return response.text