View Source LlmComposer.Providers.Bedrock.HttpClient (llm_composer v0.19.2)
ExAws HTTP client for Bedrock using Mint by default, with optional Finch support.
When stream: true is present in http_opts, uses streaming HTTP via a spawned
process that forwards events as messages to the caller. Returns a lazy Stream as
the response body — required for the ConverseStream binary event-stream response.
The spawned task is monitored with Process.monitor/1 so any unexpected crash
surfaces immediately to the caller instead of waiting for the stream timeout.
Default behaviour (Mint)
Uses Mint.HTTP directly for both streaming and regular requests. No additional
configuration is required since Mint is a required dependency of llm_composer.
Finch (optional)
If the :llm_composer :tesla_adapter config is set to a Finch adapter, Finch
is used instead of Mint:
config :llm_composer, :tesla_adapter, {Tesla.Adapter.Finch, name: MyFinch}Finch must be started in your supervision tree:
children = [{Finch, name: MyFinch}]