mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(bedrock.py): adding support for cohere embeddings
This commit is contained in:
parent
cf6ecc03a5
commit
d962d5d4c0
4 changed files with 85 additions and 38 deletions
|
@ -843,6 +843,7 @@ async def chat_completion(request: Request, model: Optional[str] = None, user_ap
|
|||
data["user"] = user_api_key_dict.user_id
|
||||
|
||||
if "metadata" in data:
|
||||
print(f'received metadata: {data["metadata"]}')
|
||||
data["metadata"]["user_api_key"] = user_api_key_dict.api_key
|
||||
data["metadata"]["headers"] = request.headers
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue