mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(fix) cleanup
This commit is contained in:
parent
8df3a86178
commit
f3a45ea044
1 changed files with 1 additions and 1 deletions
|
@ -1892,7 +1892,7 @@ async def image_generation(
|
|||
data["model"] = user_model
|
||||
|
||||
if "metadata" not in data:
|
||||
data["metadata"] = {"user_api_key": user_api_key_dict.api_key}
|
||||
data["metadata"] = {}
|
||||
data["metadata"]["user_api_key"] = user_api_key_dict.api_key
|
||||
data["metadata"]["user_api_key_metadata"] = user_api_key_dict.metadata
|
||||
data["metadata"]["headers"] = dict(request.headers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue