Commit Graph

10750 Commits

Author SHA1 Message Date
npc0-hue e08b1b079c fix: 构建 Bedrock URL处理 2026-04-24 16:38:41 +08:00
npc0-hue 3f6ef97148 fix: anthropic.* 前缀是 AWS Bedrock 专用模型 ID 格式(如 anthropic.claude-sonnet-4-6), 2026-04-24 14:42:15 +08:00
npc0-hue 33a34e4181 fix: 后端转发修改转发时长 2026-04-24 14:32:06 +08:00
npc0-hue 347e48cef6 fix: 添加DeepSeek支持 2026-04-24 12:12:28 +08:00
npc0-hue d2a7ade1b0 fix: 补充index 2026-04-24 11:04:57 +08:00
npc0-hue efc25217dc fix(bedrock): 代理改为反向代理模式,兼容不支持 CONNECT 的代理
- 取消 http.Transport.Proxy(要求代理支持 HTTP CONNECT 隧道)
- 改为直接向代理地址发 HTTP 请求(host:port),路径同 Bedrock 原生 API
- httpReq.Host 设为真实 Bedrock host,SigV4 仍针对真实 host 签名后复制头部
- 支持凭证内 bedrock_proxy_url 与全局 BEDROCK_PROXY 环境变量(优先凭证)
- config.Gaia 增加 BedrockProxy 字段,overrideGaiaFromEnv 从 BEDROCK_PROXY 读取
2026-04-24 10:58:58 +08:00
npc0-hue 618a355ec8 feat(bedrock): 全局 BEDROCK_PROXY 环境变量支持
凭证里 bedrock_proxy_url 优先,未配置则回落到 BEDROCK_PROXY env。
解决 admin-server 在受限地区(如中国)直连 bedrock-runtime 被 Anthropic 地区拦截的问题。
与 Dify Python 侧 BEDROCK_PROXY 含义一致,docker-compose 设置一次即可全局生效。
2026-04-24 10:48:36 +08:00
npc0-hue d474f15673 fix(routing): Claude 模型路由优先 aws,未开启再回落 anthropic
原来写死 anthropic 优先,导致只要 anthropic provider 配置过就直连
api.anthropic.com,在地区受限时报 geo-block 错误。
改为:哪个 provider 开启且包含该模型就用哪个(aws 先试)。
2026-04-24 10:15:47 +08:00
npc0-hue 3bad30bff1 feat(bedrock): 支持 bedrock_proxy_url 代理配置
从 Dify provider_credentials 的 encrypted_config 中读取 bedrock_proxy_url 字段,
若非空则将 HTTP 请求经该代理(host:port 或 http://host:port)转发到 AWS Bedrock,
不再强制直连 bedrock-runtime.{region}.amazonaws.com。
变更:
- ProviderCredentials 新增 BedrockProxyURL 字段
- ConfigKeyBedrockProxyURL 常量
- GetDifyProviderCredentials 提取 bedrock_proxy_url(明文,不解密)
- proxyBedrockRequest 根据 BedrockProxyURL 配置 http.Transport.Proxy
2026-04-24 09:59:56 +08:00
npc0-hue ea77171028 fix(aws): 修复 provider_credentials 表 LIKE 查询无法匹配 bedrock_claude
Dify 内部将 AWS Bedrock provider 存储为 'langgenius/bedrock_claude/bedrock_claude',
而非含 'aws' 关键字的名称,导致 LIKE '%aws%' 查询返回空结果。
新增 difyProviderLikePattern() 辅助方法:
- ProviderAWS → LIKE '%bedrock%'(兼容 bedrock_claude 和 bedrock 两种插件包)
- 其他 provider 保持原有 LIKE '%<name>%' 逻辑
2026-04-23 17:53:10 +08:00
npc0-hue bb1db4ca99 fix(aws): 前端 & 后端测试凭证支持 AWS Bedrock
- TestProviderCredentials: AWS 渠道返回 access_key_id(脱敏)/region/session_token 状态
- modelManagement/index.vue: 测试凭证弹窗适配 AWS 字段展示
- 模型列表提示区分 AWS/Anthropic/其他,附上常用 Bedrock 模型 ID 示例
2026-04-23 15:44:09 +08:00
npc0-hue 5618c89721 fix(aws): 打通 AWS Bedrock 转发链路
- model_provider_constants_extend.go: 新增 AWS 凭证配置 key 常量
  (ConfigKeyAWSAccessKeyID/SecretAccessKey/SessionToken/Region)
- GetDifyProviderCredentials: 解析 Dify bedrock provider 的 AWS 凭证字段
- GetAvailableModelsFromDify: AWS/Anthropic 在 credentials 之前提前返回,
  避免因 APIKey 为空触发误报
- ProxyRequest: 在获取凭证后新增 AWS 分支,直接调用 proxyBedrockRequest
  完成 SigV4 签名直连 Bedrock 原生 API(bedrock_extend.go 中已实现,此前未被调用)
2026-04-23 15:41:53 +08:00
npc0-hue 3a02769e4a fix: 转发添加新模型和模型提供商 2026-04-23 14:49:29 +08:00
npc0-hue 0af791f56c fix: admin初始化修改 1.12.1.fix 2026-03-31 15:26:21 +08:00
npc0-hue 0b20a17074 fix: 移除转发body 2026-03-31 15:02:04 +08:00
npc0-hue d13e083f37 fix: 调整docker初始化地址 2026-03-30 16:43:00 +08:00
npc0-hue 1cc7f4bc7b frea: admin初始化修改 2026-03-30 16:24:02 +08:00
npc0-hue 8341905b21 Merge pull request #111 from YFGaia/dependabot/npm_and_yarn/web/eslint-react/eslint-plugin-2.7.4
chore(deps-dev): bump @eslint-react/eslint-plugin from 2.7.0 to 2.7.4 in /web
2026-03-27 15:38:55 +08:00
npc0-hue b5af9263f8 Merge pull request #110 from YFGaia/dependabot/npm_and_yarn/web/elkjs-0.11.0
chore(deps): bump elkjs from 0.9.3 to 0.11.0 in /web
2026-03-27 15:37:25 +08:00
npc0-hue 950ef2d13e fix: 批量工作流刷新效果修改 2026-03-27 15:25:21 +08:00
npc0-hue 8257113c50 fix: 批处理修改 2026-03-27 14:51:11 +08:00
npc0-hue fff9543a37 fix: An “Internal Server Error” occurs on the monitoring page of the Chatflow application.
https://github.com/YFGaia/dify-plus/issues/116
2026-03-27 14:50:09 +08:00
npc0-hue 02e568c6d5 fix: 邮箱查询用户 2026-03-25 11:16:31 +08:00
npc0-hue 2bc3e4dc39 fix: fastopenapi路由认证 2026-03-25 09:53:24 +08:00
npc0-hue d7b77bee2e fix: 数据库密码莫名被改,注释掉数据库端口和redis端口 2026-03-23 17:25:07 +08:00
npc0-hue ce82b5f776 fix: docker-compose.middleware.yaml修复 2026-03-23 16:02:19 +08:00
npc0-hue f328825da7 fear: 恢复api密钥token使用量控制 2026-03-23 16:01:42 +08:00
npc0-hue 892a5f9127 fix: 批处理设置超时 2026-03-18 11:30:11 +08:00
npc0-hue 1d6e41829a fix: 调用第三方邮箱 API和镜像修改 2026-03-13 11:44:39 +08:00
npc0-hue 0484655f13 fix: 规范化处理代码 2026-03-12 14:47:02 +08:00
npc0-hue 786920c7e3 fix: 规范化处理代码 2026-03-12 11:42:02 +08:00
npc0-hue b84e94250f fix: 规范化处理代码 2026-03-12 11:29:37 +08:00
npc0-hue 9591795b10 fix: 千问3.5-plus计费不正确修复 2026-03-12 11:11:47 +08:00
npc0-hue 8df2e46658 fix: 余额不足直接拦截 2026-03-12 10:48:01 +08:00
npc0-hue 22d01c3c55 fix: 测试连接出现双重 /admin 2026-03-12 09:43:46 +08:00
npc0-hue d1b32f4310 fix: 综合修复(请求头打印、邮箱/用户名匹配、密钥显示、签名校验、删除报错等)
Made-with: Cursor
2026-03-12 09:21:21 +08:00
npc0-hue 4b5e2eaf35 fix: 计费完善 2026-03-11 12:05:53 +08:00
npc0-hue e283aa4055 feat: 前段完善 2026-03-10 11:58:14 +08:00
npc0-hue b5aba401e5 feat: 初始化token和前段修改 2026-03-10 10:17:57 +08:00
npc0-hue bc2edcdde6 feat: 钉钉机器人转发(未测试)
fix: admin初始化出错
2026-03-09 22:37:08 +08:00
npc0-hue 5962b9b518 feat: 钉钉机器人转发(未测试)
fix: admin初始化出错
2026-03-09 22:34:02 +08:00
npc0-hue 1b447b7b0b fix: admin初始化有误修复 2026-03-06 12:50:00 +08:00
npc0-hue 6c3a61d479 Merge remote-tracking branch 'origin/main' 1.12.1 2026-02-27 09:58:15 +08:00
npc0-hue 2193013e0f fix: 调整admin数据库初始化,只用一个初始化创建 2026-02-27 09:56:46 +08:00
npc0-hue 962730cf12 fix: 更新docker-compose
还在测试
2026-02-26 15:51:12 +08:00
npc0-hue bd856e988f fix: 修复web app 会话工作流 404问题会话列表
Co-authored-by: Cursor <github@npc0.com>
2026-02-25 17:08:02 +08:00
npc0-hue 10ec0eb953 feat: 合并近期功能与修复
- GLM/MiniMax 模型支持及 provider_name 修复
- OAuth2 登录跳转与重定向 hash 保留
- Azure 模型支持与转发特殊处理
- 后台登录与钉钉邮箱默认域名
- 转发获取密钥、Jinja 路径、RSA 私钥加载
- 模型管理可用模型输入与新增
- 自动更新权限、健康监测、admin 配置等

Co-authored-by: Cursor <github@npc0.com>
2026-02-24 16:24:23 +08:00
dependabot[bot] e0cf5e2e27 chore(deps-dev): bump @eslint-react/eslint-plugin in /web
Bumps [@eslint-react/eslint-plugin](https://github.com/Rel1cx/eslint-react/tree/HEAD/packages/plugins/eslint-plugin) from 2.7.0 to 2.7.4.
- [Release notes](https://github.com/Rel1cx/eslint-react/releases)
- [Changelog](https://github.com/Rel1cx/eslint-react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Rel1cx/eslint-react/commits/v2.7.4/packages/plugins/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@eslint-react/eslint-plugin"
  dependency-version: 2.7.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-11 11:12:55 +00:00
dependabot[bot] 2520715b8a chore(deps): bump elkjs from 0.9.3 to 0.11.0 in /web
Bumps [elkjs](https://github.com/kieler/elkjs) from 0.9.3 to 0.11.0.
- [Release notes](https://github.com/kieler/elkjs/releases)
- [Commits](https://github.com/kieler/elkjs/compare/0.9.3...0.11.0)

---
updated-dependencies:
- dependency-name: elkjs
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-11 11:12:47 +00:00
npc0-hue 685ff83dcb fear: 移除pnpm-lock 2026-02-11 19:11:34 +08:00