mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
fix(proxy): import the unknown-model error lazily so SDK-only installs keep working
This commit is contained in:
parent
2e3667b270
commit
561c0f7eb8
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,6 @@ from typing import (
|
|||
from litellm.batches.batch_utils import batch_cost_is_final
|
||||
from litellm.constants import MAX_FILE_LIST_LIMIT
|
||||
from litellm.proxy._types import ProxyException
|
||||
from litellm.proxy.route_llm_request import ProxyModelNotFoundError
|
||||
from litellm.repositories.table_repositories import (
|
||||
ManagedFileRepository,
|
||||
ManagedObjectRepository,
|
||||
|
|
@ -364,6 +363,8 @@ def get_credentials_for_model(
|
|||
"""
|
||||
from fastapi import HTTPException
|
||||
|
||||
from litellm.proxy.route_llm_request import ProxyModelNotFoundError
|
||||
|
||||
if llm_router is None:
|
||||
raise HTTPException(
|
||||
status_code=500,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue