Spaces:
Running

mgokg commited on
Commit
ca28ba5
·
verified ·
1 Parent(s): 7ea441b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ hf_token = os.environ.get("HF_TOKEN")
11
  # Client initialization (v1beta is required for Google Search as a tool)
12
  client_genai = genai.Client(
13
  api_key=os.environ.get("GEMINI_API_KEY"),
14
- #http_options=types.HttpOptions(api_version="v1beta"),
15
  )
16
 
17
  SYSTEM_PROMPT = "antworte kurz und knapp. optimiere deine antwort für sprachausgabe."
@@ -91,7 +91,7 @@ def generate_with_history(input_text, history):
91
 
92
  try:
93
  response = client_genai.models.generate_content(
94
- model="gemini-3.5-flash-lite",
95
  contents=contents,
96
  config=config,
97
  )
 
11
  # Client initialization (v1beta is required for Google Search as a tool)
12
  client_genai = genai.Client(
13
  api_key=os.environ.get("GEMINI_API_KEY"),
14
+ http_options=types.HttpOptions(api_version="v1beta"),
15
  )
16
 
17
  SYSTEM_PROMPT = "antworte kurz und knapp. optimiere deine antwort für sprachausgabe."
 
91
 
92
  try:
93
  response = client_genai.models.generate_content(
94
+ model="gemini-2.5-flash-lite",
95
  contents=contents,
96
  config=config,
97
  )