Commit ·
b1f7ea4
1
Parent(s): 743b676
enable thinking
Browse files243 unmodified lines244245246247248249243 unmodified linestypes.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="OFF"),types.SafetySetting(category="HARM_CATEGORY_CIVIC_INTEGRITY", threshold="OFF")]return configdef is_gemini_response_valid(response: Any) -> bool:243 unmodified lines244245246247248249250243 unmodified linestypes.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="OFF"),types.SafetySetting(category="HARM_CATEGORY_CIVIC_INTEGRITY", threshold="OFF")]config["thinking_config"] = types.ThinkingConfig(include_thoughts=True)return configdef is_gemini_response_valid(response: Any) -> bool:
app/api_helpers.py+1