-
Notifications
You must be signed in to change notification settings - Fork 1
docs: 更新文档至 v0.6.1(覆盖 v0.4.2-v0.6.1 全量检查) #1
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,7 @@ Claude Code Hub 的日志系统提供了完整的 API 请求追踪、审计和 | |
| | 性能指标 | `durationMs`, `ttfbMs` | 总耗时和首字节时间 | | ||
| | 错误信息 | `errorMessage`, `errorStack`, `errorCause`, `statusCode` | 错误详情、堆栈、原因和 HTTP 状态码 | | ||
| | 供应商决策 | `providerChain` | 供应商选择决策链(JSONB) | | ||
| | 决策链溯源 | origin chain | 被复用请求可查看 Session 原始决策过程(v0.6.0+) | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| | 拦截记录 | `blockedBy`, `blockedReason` | 被拦截的请求记录 | | ||
| | 请求详情 | `messagesCount`, `userAgent` | 消息数量和客户端信息 | | ||
|
|
||
|
|
@@ -708,7 +709,7 @@ A: 检查搜索关键词长度(至少 2 个字符),并确保有相应权 | |
| A: 异步写入模式下,日志最多有 250ms 延迟。如果延迟更长,检查 `MESSAGE_REQUEST_ASYNC_FLUSH_INTERVAL_MS` 配置。 | ||
|
|
||
| **Q: 如何追踪一个请求的完整生命周期?** | ||
| A: 使用 Session ID 筛选,按时间排序。查看 `requestSequence` 了解请求顺序,`providerChain` 了解供应商选择过程。 | ||
| A: 使用 Session ID 筛选,按时间排序。查看 `requestSequence` 了解请求顺序,`providerChain` 了解供应商选择过程。自 v0.6.0 起,被复用的请求还可以通过决策链溯源功能查看 Session 的原始决策过程。 | ||
|
|
||
| ## 相关文档 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,8 +36,14 @@ nextjs: | |
| | `priority` | 优先级(数字越小优先级越高)| 0, 1, 2... | | ||
| | `cost_multiplier` | 成本倍数 | 1.0, 1.5, 0.8 等 | | ||
| | `group_tag` | 分组标签 | "production", "backup" | | ||
| | `active_time_start` | 定时启动时间(HH:mm 格式)| "08:00"(v0.6.0+) | | ||
| | `active_time_end` | 定时停止时间(HH:mm 格式)| "22:00"(v0.6.0+) | | ||
| {% /table %} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 修复表格格式问题 静态分析工具检测到第 41 行存在表格格式问题:缺少前导和尾随管道符( 🔧 可能的修复方案如果第 41 行应该是表格的一部分,请确保格式如下: | `active_time_end` | 定时停止时间(HH:mm 格式)| "22:00"(v0.6.0+) |
-{% /table %}
+{% /table %}如果第 41 行是表格结束标记,请确保上一行(第 40 行)的表格行格式正确。 🧰 Tools🪛 markdownlint-cli2 (0.21.0)[warning] 41-41: Table pipe style (MD055, table-pipe-style) [warning] 41-41: Table pipe style (MD055, table-pipe-style) [warning] 41-41: Table column count (MD056, table-column-count) 🤖 Prompt for AI Agents |
||
|
|
||
| {% callout type="note" %} | ||
| **定时启停功能**(v0.6.0+):设置 `active_time_start` 和 `active_time_end` 后,供应商仅在指定时间窗口内参与请求调度。两个字段都为空时,供应商始终活跃。该功能可用于按时间调度供应商,例如在低价时段使用特定供应商。 | ||
| {% /callout %} | ||
|
|
||
| ### 供应商类型 | ||
|
|
||
| 系统支持 6 种供应商类型: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
贡献者
[@AptS:1547]的标注格式看起来有些不寻常。为了与其他贡献者(如[@NieiR])的标注格式保持一致并提高可读性,建议将其修改为标准的 GitHub handle 格式。