You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
multi_provider: validation and error handling improvements
This PR adds defensive checks and clearer error messages to the multi provider implementation.
### Summary of changes
1. Validate model name in get_model and reject None or empty values.
2. Normalize empty model parts in _get_prefix_and_model_name so inputs like "openai/" are handled as missing model name.
3. Replace raw delete on provider mapping with a check and UserError to avoid KeyError.
4. Catch ImportError for optional litellm provider import and raise a helpful UserError that explains how to resolve the issue.
5. Validate set_mapping inputs and shallow copy the provided mapping to prevent external mutation.
0 commit comments