forked from phoenix/litellm-mirror
Pass litellm proxy specific metadata
This commit is contained in:
parent
4c1ee1e282
commit
a71b60d005
4 changed files with 13 additions and 1 deletions
|
@ -39,6 +39,9 @@ def _get_metadata_variable_name(request: Request) -> str:
|
|||
"""
|
||||
if "thread" in request.url.path or "assistant" in request.url.path:
|
||||
return "litellm_metadata"
|
||||
if "/v1/messages" in request.url.path:
|
||||
# anthropic API has a field called metadata
|
||||
return "litellm_metadata"
|
||||
else:
|
||||
return "metadata"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue