mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(feat) OR default transforms=[]
This commit is contained in:
parent
6f97855925
commit
bd15c61a65
1 changed files with 7 additions and 1 deletions
|
@ -1030,7 +1030,13 @@ def completion(
|
|||
## Load Config
|
||||
config = openrouter.OpenrouterConfig.get_config()
|
||||
for k, v in config.items():
|
||||
if k not in optional_params:
|
||||
if k == "extra_body":
|
||||
# we use openai 'extra_body' to pass openrouter specific params - transforms, route, models
|
||||
if "extra_body" in optional_params:
|
||||
optional_params[k].update(v)
|
||||
else:
|
||||
optional_params[k] = v
|
||||
elif k not in optional_params:
|
||||
optional_params[k] = v
|
||||
|
||||
data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue