the model id as it is used by the OpenAI API
whether the streaming API shall be used
a function that returns the API key to use for this model, called on each request
a function that returns the OpenAPI version to use for this model, called on each request
the OpenAI API compatible endpoint where the model is hosted. If not provided the default OpenAI endpoint will be used.
how to handle system messages
Optional
tokenUsageService: TokenUsageServicea function that returns the API key to use for this model, called on each request
a function that returns the OpenAPI version to use for this model, called on each request
how to handle system messages
whether the streaming API shall be used
Readonly
idthe unique id for this language model. It will be used to identify the model in the UI.
the model id as it is used by the OpenAI API
Protected
Optional
Readonly
tokenthe OpenAI API compatible endpoint where the model is hosted. If not provided the default OpenAI endpoint will be used.
Protected
createProtected
getProtected
handleProtected
handleProtected
initializeProtected
isProtected
process
the unique id for this language model. It will be used to identify the model in the UI.