Closed agomezcampero closed 1 month ago
This PR adds streaming to Bedrock API similar to how it's handled in OpenAI. If no block is passed, the code works exactly the way it used to.
Usage:
Langchain::LLM::AwsBedrock.new.chat(messages:, model:) do |chunk| do_something(chunk) end
@agomezcampero Looks great, just 1 comment!
@agomezcampero Great job, thank you!
This PR adds streaming to Bedrock API similar to how it's handled in OpenAI. If no block is passed, the code works exactly the way it used to.
Usage: