Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions litellm/proxy/public_endpoints/provider_create_fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -3056,6 +3056,34 @@
],
"default_model_placeholder": "gpt-3.5-turbo"
},
{
"provider": "ZAI",
"provider_display_name": "Z.AI",
"litellm_provider": "zai",
"credential_fields": [
{
"key": "api_key",
"label": "API Key",
"placeholder": "your-zai-api-key",
"tooltip": "Z.AI API Key from https://z.ai/manage-apikey/apikey-list",
"required": true,
"field_type": "password",
"options": null,
"default_value": null
},
{
"key": "api_base",
"label": "API Base",
"placeholder": "https://api.z.ai/api/paas/v4",
"tooltip": "General: https://api.z.ai/api/paas/v4. GLM Coding Plan: https://api.z.ai/api/coding/paas/v4. Override for self-hosted endpoints.",
"required": false,
"field_type": "text",
"options": null,
"default_value": "https://api.z.ai/api/paas/v4"
}
],
"default_model_placeholder": "zai/glm-4.6"
},
{
"provider": "CURSOR",
"provider_display_name": "Cursor",
Expand Down
1 change: 1 addition & 0 deletions ui/litellm-dashboard/public/assets/logos/zai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export enum Providers {
WATSONX_TEXT = "Watsonx Text",
xAI = "xAI",
XINFERENCE = "Xinference",
ZAI = "Z.AI",
}

export const provider_map: Record<string, string> = {
Expand Down Expand Up @@ -210,6 +211,7 @@ export const provider_map: Record<string, string> = {
WATSONX_TEXT: "watsonx_text",
xAI: "xai",
XINFERENCE: "xinference",
ZAI: "zai",
};

const asset_logos_folder = "../ui/assets/logos/";
Expand Down Expand Up @@ -299,6 +301,7 @@ export const providerLogoMap: Record<string, string> = {
[Providers.WATSONX_TEXT]: `${asset_logos_folder}watsonx.svg`,
[Providers.xAI]: `${asset_logos_folder}xai.svg`,
[Providers.XINFERENCE]: `${asset_logos_folder}xinference.svg`,
[Providers.ZAI]: `${asset_logos_folder}zai.svg`,
};

export const getProviderLogoAndName = (providerValue: string): { logo: string; displayName: string } => {
Expand Down
Loading