-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Feature requestNew feature requestNew feature request
Description
Hi,
Gemini models support seed in the generationConfig parameter , but when parsing the config it's not taken , the seed parameter is not set from the input model_settings, is that intentional ?
pydantic-ai/pydantic_ai_slim/pydantic_ai/models/google.py
Lines 391 to 409 in 0047a68
config = GenerateContentConfigDict( | |
http_options=http_options, | |
system_instruction=system_instruction, | |
temperature=model_settings.get('temperature'), | |
top_p=model_settings.get('top_p'), | |
max_output_tokens=model_settings.get('max_tokens'), | |
stop_sequences=model_settings.get('stop_sequences'), | |
presence_penalty=model_settings.get('presence_penalty'), | |
frequency_penalty=model_settings.get('frequency_penalty'), | |
safety_settings=model_settings.get('google_safety_settings'), | |
thinking_config=model_settings.get('google_thinking_config'), | |
labels=model_settings.get('google_labels'), | |
media_resolution=model_settings.get('google_video_resolution'), | |
cached_content=model_settings.get('google_cached_content'), | |
tools=cast(ToolListUnionDict, tools), | |
tool_config=tool_config, | |
response_mime_type=response_mime_type, | |
response_schema=response_schema, | |
) |
Thanks,
Metadata
Metadata
Assignees
Labels
Feature requestNew feature requestNew feature request