Open CalabiYau14 opened 4 days ago
I've also encountered this issue. It seems that the team_id is being removed from the dictionary, which is apparent in the error message reported by the CalabiYau14.
07:38:24 - LiteLLM Proxy:ERROR: proxy_server.py:3482 - litellm.proxy.proxy_server.chat_completion(): Exception occured - team_id missing from team: {'success_callback': ['langfuse'], 'failure_callback': ['langfuse'], 'langfuse_public_key': '***', 'langfuse_secret': '***'}
I think the bug might be in ProxyConfig.load_team_config
. This assignment:
team_config = team
Should be a dictionary copy instead:
team_config = team.copy()
This is necessary because add_litellm_data_to_request
pops team_id
from team_config
here:
team_id = team_config.pop("team_id", None)
As a result, team_id
is missing in subsequent calls to load_team_config
.
What happened?
First of all thanks for the great work. Unfortunately I encounter a small bug starting with v1.52.0
I need to log to Langfuse and for this I use the following config:
litellm_settings: default_team_settings:
This then leads to the following error (see also added Stacktrace): Exception: team_id missing from team
Do you have any ideas why this happens? Thanks in advance and cheers
Relevant log output
Twitter / LinkedIn details
No response