mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-22 21:50:16 +09:00
![]() Adds support for using models hosted on AWS Bedrock, specifically Anthropic Claude models. Key changes: - Added '@aws-sdk/client-bedrock-runtime' dependency. - Updated constants, server config, and auth logic for Bedrock. - Implemented backend API handler () to communicate with the Bedrock API, handling streaming and non-streaming responses, and formatting output to be OpenAI compatible. - Updated dynamic API router () to dispatch requests to the Bedrock handler. - Created frontend client () and updated client factory (). - Updated with necessary Bedrock environment variables (AWS keys, region, enable flag) and an example for using to alias Bedrock models. |
||
---|---|---|
.. | ||
[provider]/[...path] | ||
artifacts | ||
bedrock | ||
config | ||
tencent | ||
upstash/[action]/[...key] | ||
webdav/[...path] | ||
alibaba.ts | ||
anthropic.ts | ||
auth.ts | ||
azure.ts | ||
baidu.ts | ||
bytedance.ts | ||
common.ts | ||
deepseek.ts | ||
glm.ts | ||
google.ts | ||
iflytek.ts | ||
moonshot.ts | ||
openai.ts | ||
proxy.ts | ||
siliconflow.ts | ||
stability.ts | ||
xai.ts |