Skip to content

[python]: Type hint on SessionConfig.model should be str rather than Literal? #169

Description

@harupy

For example, claude-opus-4.5 should be valid, but a type checker rejects it

model: Literal["gpt-5", "claude-sonnet-4", "claude-sonnet-4.5", "claude-haiku-4.5"]

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions