ModelSpec interface

The specification of a model. All fields are read-only.

Properties

isRestricted

Whether access to the model is restricted and requires credential.

license

The license of the model, when known. SPDX license identifier, e.g. mit, apache-2.0.

maxContextLength

The maximum context length supported by the model, in tokens.

Property Details

isRestricted

Whether access to the model is restricted and requires credential.

isRestricted: boolean

Property Value

boolean

license

The license of the model, when known. SPDX license identifier, e.g. mit, apache-2.0.

license?: string

Property Value

string

maxContextLength

The maximum context length supported by the model, in tokens.

maxContextLength: number

Property Value

number