mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
updated utils for bedrock.meta streaming
This commit is contained in:
parent
404d4e8737
commit
45ae4a76e4
1 changed files with 3 additions and 0 deletions
|
@ -4443,6 +4443,9 @@ class CustomStreamWrapper:
|
|||
is_finished = True
|
||||
finish_reason = stop_reason
|
||||
######## bedrock.cohere mappings ###############
|
||||
# meta mapping
|
||||
elif "generation" in chunk_data:
|
||||
text = chunk_data['generation'] # bedrock.meta
|
||||
# cohere mapping
|
||||
elif "text" in chunk_data:
|
||||
text = chunk_data["text"] # bedrock.cohere
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue