fix batches inserting metadata
This commit is contained in:
parent
159a880dcc
commit
56ce7e892d
@ -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…
Reference in New Issue
Block a user