feat: add zai provider support (#7626)

* feat: add zai provider support

* add zai_api_key secret to deploy-core

* add to justfile

* add testing, provider integration skill

* enable zai key

* fix zai test

* clean up skill a little

* small changes
This commit is contained in:
Ari Webb
2025-12-19 16:05:41 -08:00
committed by Caren Thomas
parent cb283373b7
commit cd45212acb
17 changed files with 351 additions and 13 deletions

View File

@@ -69,6 +69,7 @@ from letta.schemas.providers import (
TogetherProvider,
VLLMProvider,
XAIProvider,
ZAIProvider,
)
from letta.schemas.sandbox_config import LocalSandboxConfig, SandboxConfigCreate
from letta.schemas.secret import Secret
@@ -316,6 +317,14 @@ class SyncServer(object):
api_key_enc=Secret.from_plaintext(model_settings.xai_api_key),
)
)
if model_settings.zai_api_key:
self._enabled_providers.append(
ZAIProvider(
name="zai",
api_key_enc=Secret.from_plaintext(model_settings.zai_api_key),
base_url=model_settings.zai_base_url,
)
)
if model_settings.openrouter_api_key:
self._enabled_providers.append(
OpenRouterProvider(