yera.setup.model_discovery.common

Shared model discovery utilities.

Symbols

def classify_openai_model — Classify an OpenAI model ID into a Yera model type.

classify_openai_model

classify_openai_model(
    model_id: str,
) → str | None

Classify an OpenAI model ID into a Yera model type.

OpenAI's model list mixes chat models with ones that answer on a different endpoint entirely: realtime voice, audio, image generation, and the legacy completions API. The list reports no capabilities, so these are matched by name.

Parameters

model_id
type: str

The provider-side model identifier.

Returns

type: str | None

The Yera model type, or None if the model should be skipped.