mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
test_openai_responses_litellm_router
This commit is contained in:
parent
89d30d39f6
commit
d808fa3c23
3 changed files with 114 additions and 5 deletions
|
@ -56,7 +56,8 @@ def _get_router_metadata_variable_name(function_name) -> str:
|
|||
|
||||
For ALL other endpoints we call this "metadata
|
||||
"""
|
||||
if "batch" in function_name:
|
||||
ROUTER_METHODS_USING_LITELLM_METADATA = set(["batch", "generic_api_call"])
|
||||
if function_name in ROUTER_METHODS_USING_LITELLM_METADATA:
|
||||
return "litellm_metadata"
|
||||
else:
|
||||
return "metadata"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue