mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
revert: remove defensive isinstance check from production code
Greptile correctly pointed out that load_team_config() always returns a dict in production. The isinstance check masked test bugs rather than fixing them. The proper fix is configuring Mock.load_team_config in tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
de4caed83e
commit
6cff590464
1 changed files with 1 additions and 1 deletions
|
|
@ -799,7 +799,7 @@ class LiteLLMProxyRequestSetup:
|
|||
Add team-based callbacks from the config
|
||||
"""
|
||||
team_config = proxy_config.load_team_config(team_id=team_id)
|
||||
if not isinstance(team_config, dict) or len(team_config.keys()) == 0:
|
||||
if len(team_config.keys()) == 0:
|
||||
return None
|
||||
|
||||
callback_vars_dict = {**team_config.get("callback_vars", team_config)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue