mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(main.py): support ttl being set for completion, embedding, image generation calls
This commit is contained in:
parent
e98bb0c86c
commit
b25a8c3b42
3 changed files with 91 additions and 1 deletions
|
@ -466,6 +466,7 @@ def completion(
|
|||
"proxy_server_request",
|
||||
"preset_cache_key",
|
||||
"caching_groups",
|
||||
"ttl",
|
||||
]
|
||||
default_params = openai_params + litellm_params
|
||||
non_default_params = {
|
||||
|
@ -2158,6 +2159,7 @@ def embedding(
|
|||
"model_info",
|
||||
"preset_cache_key",
|
||||
"caching_groups",
|
||||
"ttl",
|
||||
]
|
||||
default_params = openai_params + litellm_params
|
||||
non_default_params = {
|
||||
|
@ -2787,6 +2789,7 @@ def image_generation(
|
|||
"model_info",
|
||||
"preset_cache_key",
|
||||
"caching_groups",
|
||||
"ttl",
|
||||
]
|
||||
default_params = openai_params + litellm_params
|
||||
non_default_params = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue