Retire ZenMux subscription and keep BYOK as terminal fallback

This commit is contained in:
Codex
2026-11-01 23:25:00 -08:00
parent be589ff5e0
commit c42456be22
13 changed files with 338 additions and 13 deletions
+4 -1
View File
@@ -5,6 +5,7 @@ from copy import deepcopy
from pathlib import Path
import yaml
from provider_policy import without_subscription, apply_provider_policy
def oauth_ready(path):
@@ -125,6 +126,7 @@ def add_openai_routes(config, catalog, env):
def build_config(catalog, env, exists, namespaced=True):
env = without_subscription(catalog, env)
routes = []
fallbacks = []
@@ -198,7 +200,8 @@ def build_config(catalog, env, exists, namespaced=True):
if namespaced:
config = add_bailian_routes(namespace_config(config), env,
'/etc/litellm/personal-vocabulary.json')
return add_openai_routes(config, catalog, env)
config = add_openai_routes(config, catalog, env)
return apply_provider_policy(config, catalog, env) if namespaced else config
if __name__ == '__main__':