mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-15 04:23:07 +00:00
fix batches inserting metadata
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user