Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bedrock_endpoint_url #12838

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

2284730142
Copy link

@2284730142 2284730142 commented Jan 18, 2025

add bedrock_endpoint_url for users who need a proxy

Summary

Added bedrock_endpoint_url configuration option to allow users to customize the AWS Bedrock endpoint URL. This change is primarily intended for:

  1. Users who need to access Bedrock services through a proxy
  2. Users utilizing private VPC endpoints
  3. Users who need to connect to Bedrock services in different regions

Motivation and Context

In certain enterprise environments, network security policies require accessing AWS Bedrock services through specific proxies or private endpoints. Adding this configuration option enhances system flexibility, enabling service usage across more scenarios.

Dependencies

  • No new dependencies added
  • Compatible with existing AWS Bedrock client configuration

Fixes #12926

Screenshots

| Before | After |
|image|image|

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

add bedrock_endpoint_url for users who need a proxy
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. ⚙️ feat:model-runtime labels Jan 18, 2025
@crazywoola
Copy link
Member

Please link an existing issue or create an issue.:)

@2284730142
Copy link
Author

@crazywoola Thanks for the reminder! I've created an issue #12926 to track this feature request.

The issue describes the need for a custom Bedrock endpoint URL configuration in enterprise environments where direct access to AWS services is restricted by security policies. This enhancement would help users who:

  • Need to route traffic through corporate proxies
  • Use private VPC endpoints
  • Connect to different regional endpoints

I've updated the PR description to link to the issue using the "Fixes #12926" syntax. Let me know if you need any additional information or clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ feat:model-runtime size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support customize AWS Bedrock endpoint URL
2 participants