kuro223 commited on
Commit
0a19f08
·
1 Parent(s): fd7ef5f
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -133,14 +133,14 @@ def chat():
133
  # Configuration du thinking
134
  config_dict = DEFAULT_CONFIG.copy()
135
  config_dict["system_instruction"] = SYSTEM_INSTRUCTION
136
-
137
- if thinking_enabled:
138
- config_dict["thinking_config"] = types.ThinkingConfig(
139
- thinking_budget=-1, # Dynamic thinking
140
- include_thoughts=True
141
- )
142
-
143
  config_dict["tools"] = DEFAULT_TOOLS
 
 
 
 
 
 
 
144
  generation_config = types.GenerateContentConfig(**config_dict)
145
 
146
  # Gestion de la conversation
@@ -231,14 +231,15 @@ def chat_with_file():
231
 
232
  # Configuration du thinking
233
  config_dict = DEFAULT_CONFIG.copy()
234
- if thinking_enabled:
235
- config_dict["thinking_config"] = types.ThinkingConfig(
236
- thinking_budget=-1,
237
- include_thoughts=True
238
- )
239
-
240
  config_dict["tools"] = DEFAULT_TOOLS
241
  config_dict["system_instruction"] = SYSTEM_INSTRUCTION
 
 
 
 
 
 
 
242
  generation_config = types.GenerateContentConfig(**config_dict)
243
 
244
  # Gestion de la conversation
 
133
  # Configuration du thinking
134
  config_dict = DEFAULT_CONFIG.copy()
135
  config_dict["system_instruction"] = SYSTEM_INSTRUCTION
 
 
 
 
 
 
 
136
  config_dict["tools"] = DEFAULT_TOOLS
137
+
138
+ # Thinking not supported for chat API
139
+ # if thinking_enabled:
140
+ # config_dict["thinking_config"] = types.ThinkingConfig(
141
+ # thinking_budget=-1, # Dynamic thinking
142
+ # include_thoughts=True
143
+ # )
144
  generation_config = types.GenerateContentConfig(**config_dict)
145
 
146
  # Gestion de la conversation
 
231
 
232
  # Configuration du thinking
233
  config_dict = DEFAULT_CONFIG.copy()
 
 
 
 
 
 
234
  config_dict["tools"] = DEFAULT_TOOLS
235
  config_dict["system_instruction"] = SYSTEM_INSTRUCTION
236
+
237
+ # Thinking not supported for chat API
238
+ # if thinking_enabled:
239
+ # config_dict["thinking_config"] = types.ThinkingConfig(
240
+ # thinking_budget=-1,
241
+ # include_thoughts=True
242
+ # )
243
  generation_config = types.GenerateContentConfig(**config_dict)
244
 
245
  # Gestion de la conversation