Skip to content

feat: add model field patch #1169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2025
Merged

feat: add model field patch #1169

merged 1 commit into from
Feb 13, 2025

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Feb 13, 2025

Now, model definition can have its own patch configuration.

...
    - name: o3-mini-high
      real_name: o3-mini
      max_input_tokens: 200000
      input_price: 1.1
      output_price: 4.4
      supports_vision: true
      supports_function_calling: true
      supports_reasoning: true
      no_temperature: true
      system_prompt_prefix: Formatting re-enabled
      patch:
        body:
          reasoning_effort: high

...
    - name: gemini-2.0-flash-online
      real_name: gemini-2.0-flash
      max_input_tokens: 1048576
      max_output_tokens: 8192
      supports_vision: true
      supports_function_calling: true
      patch:
        body:
          tools: 
            - google_search: {}

@sigoden sigoden merged commit 9dfbdaf into main Feb 13, 2025
3 checks passed
@sigoden sigoden deleted the feat branch February 13, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant