mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
chore(proxy): mark the catalog cache and the unit-test env pin for the lint gates
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
1ac32542b1
commit
edf483ef3c
2 changed files with 4 additions and 3 deletions
|
|
@ -116,8 +116,8 @@ class CodexCatalogSource:
|
|||
self._retry_seconds = retry_seconds
|
||||
self._timeout = timeout
|
||||
self._cached_versions = cached_versions
|
||||
self._cache: OrderedDict[str, _Cached] = OrderedDict()
|
||||
self._pending: dict[str, asyncio.Task[CodexStock]] = {}
|
||||
self._cache: OrderedDict[str, _Cached] = OrderedDict() # mutable-ok: filled as releases are first asked for
|
||||
self._pending: dict[str, asyncio.Task[CodexStock]] = {} # mutable-ok: the fetches in flight, one per release
|
||||
|
||||
async def stock(self, client_version: str | None) -> CodexStock:
|
||||
tag: Final = codex_release_tag(client_version)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ HOST_ENVIRONMENT_ALLOWLIST: Final = frozenset(
|
|||
"VIRTUAL_ENV",
|
||||
"LITELLM_LOCAL_MODEL_COST_MAP",
|
||||
"LITELLM_LOCAL_CODEX_CATALOG",
|
||||
"LITELLM_LOCAL_CODEX_CATALOG",
|
||||
"TIKTOKEN_CACHE_DIR",
|
||||
)
|
||||
)
|
||||
|
|
@ -43,7 +44,7 @@ HOST_ONLY_ENVIRONMENT: Final = frozenset(
|
|||
|
||||
os.environ["PYTHON_DOTENV_DISABLED"] = "1"
|
||||
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
|
||||
os.environ["LITELLM_LOCAL_CODEX_CATALOG"] = "True"
|
||||
os.environ["LITELLM_LOCAL_CODEX_CATALOG"] = "True" # test-quality-ok: set once so no unit test fetches github
|
||||
|
||||
import litellm # noqa: E402 # litellm reads LITELLM_LOCAL_MODEL_COST_MAP at import
|
||||
import litellm.router as litellm_router_module # noqa: E402 # same import-time dependency
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue