OpenAIModelInfo
Static metadata about an OpenAI model.
Mirrors the ModelCapabilities interface in the other Mojentic ports — a lookup record describing the context window, feature flags, temperature restrictions, and per-API support a broker / chat session might consult before issuing a call. Update conservatively: stale entries are far better than wrong ones.
Properties
maximum context window in tokens, or null if unknown
maximum output tokens per response, or null if unknown
null means all temperatures are supported; an empty list means the temperature parameter is not allowed; a non-empty list enumerates the only permitted values
whether the model is reachable via the Chat Completions API
whether the model is reachable via the legacy Completions API
Whether this model is a reasoning model — equivalent to checking modelType against ModelType.REASONING. Reasoning models use max_completion_tokens instead of max_tokens and accept a reasoning_effort parameter.
whether the model is reachable via the Responses API
whether the model supports streaming responses
whether the model accepts tool / function definitions
whether the model accepts image input
The correct request parameter name for token limits, based on modelType.
Functions
Whether the given temperature value is permitted for this model.