forked from phoenix/litellm-mirror
fix batches inserting metadata
This commit is contained in:
parent
159a880dcc
commit
56ce7e892d
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ def _get_metadata_variable_name(request: Request) -> str:
|
|||
"""
|
||||
if "thread" in request.url.path or "assistant" in request.url.path:
|
||||
return "litellm_metadata"
|
||||
if "batches" in request.url.path:
|
||||
return "litellm_metadata"
|
||||
if "/v1/messages" in request.url.path:
|
||||
# anthropic API has a field called metadata
|
||||
return "litellm_metadata"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue