mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
feat - support /create assistants endpoint
This commit is contained in:
parent
6479442d5b
commit
12f207b499
2 changed files with 3 additions and 3 deletions
|
@ -33,11 +33,11 @@ def _get_metadata_variable_name(request: Request) -> str:
|
|||
"""
|
||||
Helper to return what the "metadata" field should be called in the request data
|
||||
|
||||
For all /thread endpoints we need to call this "litellm_metadata"
|
||||
For all /thread or /assistant endpoints we need to call this "litellm_metadata"
|
||||
|
||||
For ALL other endpoints we call this "metadata
|
||||
"""
|
||||
if "thread" in request.url.path:
|
||||
if "thread" in request.url.path or "assistant" in request.url.path:
|
||||
return "litellm_metadata"
|
||||
else:
|
||||
return "metadata"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue