Skip to content

ThinkingConfig lacks budget_tokens #14

Closed

Description

@theQuert

ThinkingConfig (the thinking argument of chat.completions.create) only declares type. Its docstring says it is for Gemini models.

When a chat request is converted for Claude, the gateway also reads thinking.budget_tokens. Callers who pass {"type": "enabled", "budget_tokens": 2048} get a type error, although the field works.

Fix: add budget_tokens: int to ThinkingConfig, and make the docstring say which models read it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Uy5vXsRpMhug7v3XwTMZHv

Activity

  1. theQuert commented on Oct 7, 2026

    @theQuert
    MemberAuthor

    Fixed by #16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions