Repository navigation
feat: aws client supports proxy settings - #2107
Conversation
Signed-off-by: iwu <[email protected]>
WalkthroughThe PR adds proxy-aware HTTP client configuration to the AWS Bedrock relay channel. When a proxy is defined in channel settings, a proxy HTTP client is created and passed to the bedrockruntime client; otherwise, a default HTTP client is used. Service package imports were added to support this functionality. Changes
Sequence DiagramsequenceDiagram
participant Relay as AWS Relay
participant Svc as Service
participant Client as Bedrock Runtime
Relay->>Relay: Check ChannelSetting.Proxy
alt Proxy configured
Relay->>Svc: NewProxyHttpClient(proxyURL)
Svc-->>Relay: HTTPClient (proxy-aware)
else No proxy
Relay->>Svc: GetHttpClient()
Svc-->>Relay: HTTPClient (default)
end
Relay->>Client: bedrockruntime.New(opts with HTTPClient)
Client-->>Relay: Bedrock client instance
Note over Client: Subsequent requests use<br/>configured HTTP client
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)relay/channel/aws/relay-aws.go (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…rt-proxy feat: aws client supports proxy settings
…rt-proxy feat: aws client supports proxy settings
…rt-proxy feat: aws client supports proxy settings
Fix #998
Summary by CodeRabbit