Skip to content

Commit

Permalink
community[patch]/chat_models/bedrock.py yielded after on_llm_new_token
Browse files Browse the repository at this point in the history
  • Loading branch information
meenakshiruia committed Dec 25, 2024
1 parent 80d58b5 commit e412042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/community/langchain_community/chat_models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _stream(
delta = chunk.text
cg_chunk = ChatGenerationChunk(message=AIMessageChunk(content=delta))
if run_manager:
run_manager.on_llm_new_token(delta, chunk = cg_chunk )
run_manager.on_llm_new_token(delta, chunk=cg_chunk )
yield cg_chunk

def _generate(
Expand Down

0 comments on commit e412042

Please sign in to comment.