Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error after deleting fallback using UI #8331

Open
vargacypher opened this issue Feb 6, 2025 · 1 comment
Open

[Bug]: Error after deleting fallback using UI #8331

vargacypher opened this issue Feb 6, 2025 · 1 comment
Assignees
Labels
bug Something isn't working mlops user request

Comments

@vargacypher
Copy link

What happened?

We're testing litllm proxy server to helped us with fallbacks, and we're facing a problem when trying to delete a fallback rule and recreating it.

  • Docker deployment using litellm:main-latest
  • Postgres DB

config.yaml

model_list:
  - model_name: gpt-4o-mini
    litellm_params:
      model: openai/gpt-4o-mini
      api_key: os.environ/OPENAI_API_KEY     
  - model_name: gpt-4o
    litellm_params:
      model: openai/gpt-4o
      api_key: os.environ/OPENAI_API_KEY   
  - model_name: gemini-pro
    litellm_params:
      model: vertex_ai/gemini-2.0-flash-001 
      vertex_project: "project"
      vertex_location: "us-central1"
      vertex_credentials: "/app/user.json" 

How to replicate:

In UI panel >> router settings >> add falbacks >> test

Image

Success

In UI panel >> router settings >> delete falbacks >> add (updated) fallback >> test

Image

Error

Relevant log output

Error occurred while generating model response. Please try again. Error: Error: 500 litellm.InternalServerError: This is a mock exception for model=gemini-pro, to trigger a fallback. Fallbacks=[{}, {'gemini-pro': ['gpt-4o-mini']}] Received Model Group=gemini-pro Available Model Group Fallbacks=None Error doing the fallback: list index out of range

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

latest

Twitter / LinkedIn details

No response

@vargacypher vargacypher added the bug Something isn't working label Feb 6, 2025
@krrishdholakia krrishdholakia self-assigned this Feb 7, 2025
@krrishdholakia
Copy link
Contributor

Thank you for this issue @vargacypher i'll pick this up tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mlops user request
Projects
None yet
Development

No branches or pull requests

2 participants