forked from phoenix/litellm-mirror
fix(main.py): support ttl being set for completion, embedding, image generation calls
This commit is contained in:
parent
dfd2f68c07
commit
f0b6b9dce2
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