Retire ZenMux subscription and keep BYOK as terminal fallback
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user