mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(proxy): avoid NotRequired access on litellm_params model
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
1bf3ab5388
commit
ba817aa9bb
1 changed files with 1 additions and 1 deletions
|
|
@ -12481,7 +12481,7 @@ async def supported_openai_params(model: str):
|
|||
global llm_router
|
||||
try:
|
||||
deployments: Final = llm_router.get_model_list(model_name=model) if llm_router is not None else None
|
||||
model_to_map: Final = deployments[0]["litellm_params"]["model"] if deployments else model
|
||||
model_to_map: Final = (deployments[0]["litellm_params"].get("model") or model) if deployments else model
|
||||
litellm_model, custom_llm_provider, _, _ = litellm.get_llm_provider(model=model_to_map)
|
||||
return {
|
||||
"supported_openai_params": litellm.get_supported_openai_params(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue