fix: refactor code structure for improved readability and maintainability

This commit is contained in:
qiupinhua
2026-02-13 18:51:30 +08:00
parent 09c7e7aded
commit 1ae47058d9
4 changed files with 2406 additions and 17 deletions

View File

@@ -54,6 +54,9 @@ class LiteLLMProvider(LLMProvider):
spec = self._gateway or find_by_model(model)
if not spec:
return
if not spec.env_key:
# OAuth/provider-only specs (for example: openai_codex)
return
# Gateway/local overrides existing env; standard provider doesn't
if self._gateway: