The LlmGetModelInfo function retrieves detailed information about
a model associated with the provider used by the client session. If a model
name is specified, it must be valid for the current provider. If no model
name is specified, the function returns information about the model
currently associated with the session.
The lpModelInfo parameter must point to an LLM_MODEL_INFO structure
whose dwSize member has been initialized to
sizeof(LLM_MODEL_INFO). This enables the library to validate the
structure version and maintain compatibility with future releases.
The information returned by this function includes the model identifier,
provider, capability flags, status flags, token limits, context size, and
optional metadata such as display name, owner, version, and creation date.
Not all providers supply complete metadata for every model, and some values
may be empty or unspecified.
Model capability and limit information should be treated as descriptive
metadata rather than an absolute guarantee of behavior. Providers may change
model availability, limits, or capabilities over time, and locally hosted
models may allow some values, such as context size, to be configured outside
of the application.