feat: Add thinking configuration to generation request for enhanced processing
This commit is contained in:
parent
2aecba84a5
commit
463c6f0b04
@ -1102,7 +1102,8 @@ CRITICAL: Do NOT output anything other than the required JSON response.
|
||||
temperature=generation_config.temperature, # from existing config
|
||||
max_output_tokens=generation_config.max_output_tokens, # from existing config
|
||||
safety_settings=generation_config.safety_settings, # from existing config
|
||||
system_instruction=types.Content(role="system", parts=[types.Part(text=system_prompt_text)])
|
||||
system_instruction=types.Content(role="system", parts=[types.Part(text=system_prompt_text)]),
|
||||
thinking_config=generation_config.thinking_config, # from existing config
|
||||
# response_mime_type="application/json", # Consider if model supports this for forcing JSON
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user