class documentation
LLM config
| Static Method | provider |
Return the name of the LLM provider given its ID. |
| Static Method | providers |
Return a list of available LLM providers. |
| Method | __init__ |
Initialize the LLM config for the given provider ID. |
| Class Variable | __slots__ |
Undocumented |
| Property | api |
Return the current API key. |
| Property | headers |
Return the headers for the LLM. |
| Property | id |
Return the ID of the LLM. |
| Property | model |
Return the current model. |
| Property | models |
Return the list of models for the LLM. |
| Property | name |
Return the name of the LLM. |
| Property | payload |
Return a payload for the chat agent based on the provider. |
| Property | thinking |
Return the current thinking setting for the LLM. |
| Property | thinking |
Return the thinking-related payload for the LLM. |
| Property | url |
Return the URL of the LLM. |
| Method | __set |
Set model name, url, and headers based on the provider ID. |
| Instance Variable | _api |
Undocumented |
| Instance Variable | _current |
Undocumented |
| Instance Variable | _headers |
Undocumented |
| Instance Variable | _id |
Undocumented |
| Instance Variable | _models |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _thinking |
Undocumented |
| Instance Variable | _url |
Undocumented |
Return the name of the LLM provider given its ID.
| Parameters | |
providerint | The provider ID constant. |
| Returns | |
str | The provider name, or "Unknown" if not recognized. |
Initialize the LLM config for the given provider ID.
| Parameters | |
storage:Storage | The storage interface for settings. |
llmint | The provider ID constant. |
model:str | The model name to use. Defaults to None. |
thinking:str | The thinking level. Defaults to "none". |
Set model name, url, and headers based on the provider ID.
| Parameters | |
storage:Storage | The storage interface for settings. |