main.py aktualisiert
This commit is contained in:
4
main.py
4
main.py
@@ -23,7 +23,7 @@ SSH_KEY = os.path.expanduser("~/.ssh/id_rsa")
|
|||||||
DB_PATH = "cluster.db"
|
DB_PATH = "cluster.db"
|
||||||
|
|
||||||
# --- KI KONFIGURATION ---
|
# --- KI KONFIGURATION ---
|
||||||
AI_PROVIDER = "ollama" # "openai", "google" oder "ollama"
|
AI_PROVIDER = "google" # "openai", "google" oder "ollama"
|
||||||
OPENAI_API_KEY = "dein-key"
|
OPENAI_API_KEY = "dein-key"
|
||||||
GOOGLE_API_KEY = "dein-key"
|
GOOGLE_API_KEY = "dein-key"
|
||||||
OLLAMA_BASE_URL = "http://x.x.x.x:11434/v1" # IP deines Ollama-Servers
|
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',
|
model='gemini-2.5-flash',
|
||||||
contents=user_input,
|
contents=user_input,
|
||||||
config=types.GenerateContentConfig(
|
config=types.GenerateContentConfig(
|
||||||
system_instruction=SYSTEM_PROMPT
|
system_instruction=system_prompt
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return response.text
|
return response.text
|
||||||
|
|||||||
Reference in New Issue
Block a user