Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3cea385
feat(providers): 改进 API 测试以支持流式响应检测与处理
Silentely Nov 22, 2025
4576c53
fix(providers): 移除max_output_tokens 参数以兼容中转服务
Silentely Nov 22, 2025
35276ea
feat(providers): 支持解析和处理流式响应数据
Silentely Nov 22, 2025
867ad77
feat(api-test): 增加流式响应信息展示功能
Silentely Nov 22, 2025
d1bee4c
fix(settings): 调整供应商模型测试提示文本
Silentely Nov 22, 2025
b2945a5
style: 修复代码格式以通过 Prettier 检查
Silentely Nov 22, 2025
0531057
fix: 修复代码审查中发现的关键问题
Silentely Nov 22, 2025
47537a7
Merge pull request #185 from Silentely/fix-provider-test
ding113 Nov 22, 2025
07267a5
fix: 优化供应商测试和日志系统
Silentely Nov 22, 2025
93d4b7b
Merge branch 'fix/provider-test-and-logs' into dev
Silentely Nov 22, 2025
cc3e30c
refactor: 根据代码审查优化实现
Silentely Nov 22, 2025
c175285
fix: resolve Docker build failure by excluding Node.js modules
github-actions[bot] Nov 22, 2025
a178d13
fix: 根据 ding113 审查意见完成修复
Silentely Nov 22, 2025
53b09cc
fix: add webpack externals for Node.js built-in modules
github-actions[bot] Nov 22, 2025
22062f4
fix: 修复 log-time-formatter 的 null 安全问题并添加文档
Silentely Nov 22, 2025
25cf1c3
refactor: 删除未使用代码并优化错误处理
Silentely Nov 22, 2025
dddcaf9
Merge pull request #186 from Silentely/dev
ding113 Nov 22, 2025
d0d5cce
fix: 修复 Gemini 模型重定向无效的问题
ding113 Nov 23, 2025
f932424
fix: 修复供应商 API 测试返回 520 错误的问题
Silentely Nov 24, 2025
30b0911
fix: 修复代理降级时 Body has already been read 错误
Silentely Nov 24, 2025
2918043
chore: 增加 API 测试超时时间到 15 秒
Silentely Nov 24, 2025
5409736
feat: 改进供应商 API 测试体验
Silentely Nov 24, 2025
e2a8ff8
fix: Anthropic API 测试同时发送两种认证头
Silentely Nov 24, 2025
d592091
fix: 修复 Codex API 测试请求体格式
Silentely Nov 24, 2025
be3cd1c
fix: 修正 Pino 日志时间戳配置位置
Silentely Nov 24, 2025
2ad3dd8
chore: 移除重复的 API 测试注意事项
Silentely Nov 24, 2025
a3a007e
chore(i18n): remove unused notice field from apiTest section
Silentely Nov 24, 2025
26a112f
feat(i18n): add disclaimer translations for API test feature
Silentely Nov 24, 2025
e320e54
feat(providers): 增强 API 测试错误解析逻辑
Silentely Nov 24, 2025
bdb2041
fix: 修复供应商多标签匹配问题 (#190)
ding113 Nov 24, 2025
d0dd669
fix: 修复 Codex 供应商 API 测试失败问题 (#189)
ding113 Nov 24, 2025
71f59d6
feat: 优化使用记录状态码颜色显示 (#188)
ding113 Nov 24, 2025
4e3402d
feat: 调整流式静默期超时默认值从 10 秒改为 300 秒
ding113 Nov 24, 2025
3a2ef7a
fix: 修复模型重定向日志记录问题
ding113 Nov 24, 2025
79061a7
fix: 修复错误规则正则匹配问题并增强刷新缓存功能
ding113 Nov 24, 2025
ebc05ff
fix(i18n): 修复 API 测试免责声明翻译键路径错误
Silentely Nov 24, 2025
9bdba4f
Merge branch 'dev' into fix/provider-api-test-520-error
Silentely Nov 24, 2025
0d0cce6
fix: harden provider api test diagnostics
Silentely Nov 24, 2025
7e0faf3
Merge pull request #194 from Silentely/fix/provider-api-test-520-error
ding113 Nov 24, 2025
743605d
chore: format code (dev-7e0faf3)
github-actions[bot] Nov 24, 2025
fa93f48
fix: clarify provider response model label
Silentely Nov 24, 2025
410048b
Merge pull request #197 from Silentely/chore/update-response-model-label
ding113 Nov 25, 2025
806e1c4
fix: 修复 PR review 中发现的多个问题
ding113 Nov 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ APP_PORT=23000
APP_URL= # 应用访问地址(留空自动检测,生产环境建议显式配置)
# 示例:https://your-domain.com 或 http://192.168.1.100:23000

# API 测试配置
# API 测试请求超时时间(毫秒),范围 5000-120000。未设置时默认 15000。
API_TEST_TIMEOUT_MS=15000

# Cookie 安全策略
# 功能说明:控制是否强制 HTTPS Cookie(设置 cookie 的 secure 属性)
# - true (默认):仅允许 HTTPS 传输 Cookie,浏览器会自动放行 localhost 的 HTTP
Expand Down
1 change: 1 addition & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ Docker Compose is the **preferred deployment method** — it automatically provi
| `ENABLE_CIRCUIT_BREAKER_ON_NETWORK_ERRORS` | `false` | When `true`, network errors also trip the circuit breaker for quicker isolation. |
| `APP_PORT` | `23000` | Production port (override via container or process manager). |
| `APP_URL` | empty | Populate to expose correct `servers` entries in OpenAPI docs. |
| `API_TEST_TIMEOUT_MS` | `15000` | Timeout (ms) for provider API connectivity tests. Accepts 5000-120000 for regional tuning. |

> Boolean values should be `true/false` or `1/0` without quotes; otherwise Zod may coerce strings incorrectly. See `.env.example` for the full list.

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ Docker Compose 是**首选部署方式**,自动配置数据库、Redis 和应
| `ENABLE_CIRCUIT_BREAKER_ON_NETWORK_ERRORS` | `false` | 是否将网络错误计入熔断器;开启后能更激进地阻断异常线路。 |
| `APP_PORT` | `23000` | 生产端口,可被容器或进程管理器覆盖。 |
| `APP_URL` | 空 | 设置后 OpenAPI 文档 `servers` 将展示正确域名/端口。 |
| `API_TEST_TIMEOUT_MS` | `15000` | 供应商 API 测试超时时间(毫秒,范围 5000-120000),跨境网络可适当提高。 |

> 布尔变量请直接写 `true/false` 或 `1/0`,勿加引号,避免被 Zod 转换为真值。更多字段参考 `.env.example`。

Expand Down
2 changes: 2 additions & 0 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ ENV NEXT_PUBLIC_APP_VERSION=$APP_VERSION
# 这些是占位符,实际运行时会被真实值覆盖
ENV DSN="postgres://placeholder:placeholder@localhost:5432/placeholder"
ENV REDIS_URL="redis://localhost:6379"
# 标记为 CI 环境,跳过 instrumentation.ts 中的数据库连接
ENV CI=true

RUN bun run build

Expand Down
1 change: 1 addition & 0 deletions drizzle/0023_cheerful_shocker.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "providers" ALTER COLUMN "streaming_idle_timeout_ms" SET DEFAULT 300000;
Loading
Loading