diff --git a/helpers.py b/helpers.py index da48f1c4..56de2ab4 100644 --- a/helpers.py +++ b/helpers.py @@ -349,8 +349,8 @@ def call_gemini_flash(prompt, system_instruction=None, temperature=0.3, json_mod if json_mode: config["response_mime_type"] = "application/json" - # Der Modell-Name muss oft explizit sein, 'gemini-1.5-flash' ist Standard - model_id = "gemini-1.5-flash" + # Verwende eine spezifische Version, die oft stabiler ist + model_id = "gemini-1.5-flash-001" response = client.models.generate_content( model=model_id, @@ -391,7 +391,7 @@ def call_openai_chat(prompt, temperature=0.3, model=None, response_format_json=F # NEU: Client Instanziierung client = genai.Client(api_key=api_key) - model_id = "gemini-1.5-flash" + model_id = "gemini-1.5-flash-001" response = client.models.generate_content( model=model_id,