root
Client for root/main endpoints.
Classes
RootClient
RootClient(client: OWUIClientBase)
Bases: ResourceBase
Client for root/main endpoints (version, config, models, etc.).
- Code Reference client Classes OpenWebUI Attributes root
Source code in src/owui_client/client_base.py
Functions
get_version
Get the application version and deployment ID.
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary containing: |
Dict[str, Any]
|
|
Dict[str, Any]
|
|
Source code in src/owui_client/routers/root.py
get_changelog
Get the application changelog.
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary containing the latest 5 changelog entries. |
health
Check the health of the application.
Returns:
| Type | Description |
|---|---|
Dict[str, bool]
|
A dictionary with the health status: |
Source code in src/owui_client/routers/root.py
get_config
Get the application configuration.
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary containing configuration details such as: |
Dict[str, Any]
|
|
Dict[str, Any]
|
|
Dict[str, Any]
|
|
Dict[str, Any]
|
|
Dict[str, Any]
|
|
Dict[str, Any]
|
|
Source code in src/owui_client/routers/root.py
get_webhook_url
Get the configured webhook URL.
Returns:
| Type | Description |
|---|---|
Dict[str, str]
|
A dictionary containing the |
update_webhook_url
Update the webhook URL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
The new webhook URL. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, str]
|
A dictionary containing the updated |
Source code in src/owui_client/routers/root.py
get_models
Get available models (unified list).
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary with a |
chat_completions
Generate chat completions (unified endpoint).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
form_data
|
Dict[str, Any]
|
A dictionary containing the chat completion parameters.
This typically includes |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary containing the chat completion response. |
Source code in src/owui_client/routers/root.py
embeddings
Generate embeddings (unified endpoint).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
form_data
|
Dict[str, Any]
|
A dictionary containing the embeddings parameters.
This typically includes |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
A dictionary containing the embeddings response. |