Skip to content

LLMModel type alias is not callable at runtime #124

@alex-w-99

Description

@alex-w-99

In bluebox/data_models/llms/vendors.py, type LLMModel = OpenAIModel creates a TypeAliasType, which can't be used as a constructor. This means, for example, LLMModel("gpt-5.1") raises TypeError: 'typing.TypeAliasType' object is not callable.

Change to a plain assignment so it's callable:

# before
type LLMModel = OpenAIModel

# after
LLMModel = OpenAIModel

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions