fix(main.py): support ttl being set for completion, embedding, image generation calls

This commit is contained in:
Krrish Dholakia 2023-12-26 17:22:31 +05:30
parent e98bb0c86c
commit b25a8c3b42
3 changed files with 91 additions and 1 deletions

View file

@ -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 = {