設置模型是kimi, 發出問題後, 回應{"error":{"message":"Invalid request: tokenization failed","type":"invalid_request_error"}} #176
alexpan2002
started this conversation in
General
Replies: 3 comments
|
key给错了? |
0 replies
|
我只有一個kimi key, 不會錯的. |
0 replies
|
试试新版本,mimo给codex用只需要开启codex兼容开关就够了 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Agent 配置: Codex
渠道中心: kimi/moonshot, 目標: Codex Response, Token Plan: OpenAI-Compatible
log 如下:
10:46:44 [Desktop-Backend] 已启动 CCX,pid=40200 port=3688
10:46:44 [stdout] 2026/06/03 10:46:44.514318 [Logger-Init] 日志系统已初始化
10:46:44 [stdout] 2026/06/03 10:46:44.550026 [Logger-Init] 日志文件: logs\app.log
10:46:44 [stdout] 2026/06/03 10:46:44.550026 [Logger-Init] 轮转配置: 最大 100MB, 保留 10 个备份, 30 天
10:46:44 [stdout] 2026/06/03 10:46:44.550559 [Session-Init] 会话管理器已初始化
10:46:44 [stdout] 2026/06/03 10:46:44.559522 [SQLite-Init] 指标存储已初始化: .config/metrics.db (保留 30 天)
10:46:44 [stdout] 2026/06/03 10:46:44.559522 [Metrics-Load] [messages] 无历史指标数据需要加载
10:46:44 [stdout] 2026/06/03 10:46:44.559522 [Metrics-Load] [messages] 已从持久化存储加载 0 条历史记录、0 条熔断状态,重建 0 个 Key 指标
10:46:44 [stdout] 2026/06/03 10:46:44.560045 [Metrics-Load] [responses] 已从持久化存储加载 16 条历史记录、0 条熔断状态,重建 2 个 Key 指标
10:46:44 [stdout] 2026/06/03 10:46:44.560045 [Metrics-Load] [gemini] 无历史指标数据需要加载
10:46:44 [stdout] 2026/06/03 10:46:44.560045 [Metrics-Load] [gemini] 已从持久化存储加载 0 条历史记录、0 条熔断状态,重建 0 个 Key 指标
10:46:44 [stdout] 2026/06/03 10:46:44.560045 [Metrics-Load] [chat] 无历史指标数据需要加载
10:46:44 [stdout] 2026/06/03 10:46:44.560045 [Metrics-Load] [chat] 已从持久化存储加载 0 条历史记录、0 条熔断状态,重建 0 个 Key 指标
10:46:44 [stdout] 2026/06/03 10:46:44.560580 [Metrics-Load] [images] 无历史指标数据需要加载
10:46:44 [stdout] 2026/06/03 10:46:44.560580 [Metrics-Load] [images] 已从持久化存储加载 0 条历史记录、0 条熔断状态,重建 0 个 Key 指标
10:46:44 [stdout] 2026/06/03 10:46:44.560580 [URLManager-Init] URL管理器已初始化 (冷却期: 30秒, 最大连续失败: 3)
10:46:44 [stdout] 2026/06/03 10:46:44.560580 [Scheduler-Init] 多渠道调度器已初始化 (失败率阈值: 50%, 滑动窗口: 10, 连续失败阈值: 3)
10:46:44 [stdout] 2026/06/03 10:46:44.560580 [Conversation-Init] 对话追踪器和覆盖管理器已初始化 (idle: 1h, expire: 2h, override TTL: 30m)
10:46:44 [stdout]
10:46:44 [stdout] [Server-Startup] CCX API代理服务器已启动
10:46:44 [stdout] [Server-Info] 版本: v2.8.20
10:46:44 [stdout] [Server-Info] 构建时间: 2026-06-01_11:29:59
10:46:44 [stdout] [Server-Info] Git提交: 92dae2f
10:46:44 [stdout] [Server-Info] 管理界面: http://localhost:3688
10:46:44 [stdout] [Server-Info] API 地址: http://localhost:3688/v1
10:46:44 [stdout] [Server-Info] Claude Messages: POST /v1/messages
10:46:44 [stdout] [Server-Info] Codex Responses: POST /v1/responses
10:46:44 [stdout] [Server-Info] Gemini API: POST /v1beta/models/{model}:generateContent
10:46:44 [stdout] [Server-Info] Gemini API: POST /v1beta/models/{model}:streamGenerateContent
10:46:44 [stdout] [Server-Info] Chat Completions: POST /v1/chat/completions
10:46:44 [stdout] [Server-Info] Images Generations: POST /v1/images/generations
10:46:44 [stdout] [Server-Info] Images Edits: POST /v1/images/edits
10:46:44 [stdout] [Server-Info] Images Variations: POST /v1/images/variations
10:46:44 [stdout] [Server-Info] 健康检查: GET /health
10:46:44 [stdout] [Server-Info] 环境: production
10:46:44 [stdout] [Server-Info] 代理访问密钥 (PROXY_ACCESS_KEY): cc4d (已脱敏,不可直接复制)
10:46:44 [stdout] [Server-Info] 管理 API 密钥 (ADMIN_ACCESS_KEY): 未设置 (回退到 PROXY_ACCESS_KEY)
10:46:44 [stdout]
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 522.9µs | ::1 | GET "/?ccx_desktop=1"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 0s | ::1 | GET "/assets/index-C4Yf9bov.js"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 525µs | ::1 | GET "/assets/rolldown-runtime-BYbx6iT9.js"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 2.6887ms | ::1 | GET "/assets/vue-vendor-Bz8HTt8S.css"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 0s | ::1 | GET "/assets/index-SP8JPS2R.css"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 12.2644ms | ::1 | GET "/assets/vuetify-D9xSgwjw.css"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 15.5534ms | ::1 | GET "/assets/vuetify-CtR0hSBT.js"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 27.121ms | ::1 | GET "/assets/vue-vendor-5FbKIcXy.js"
10:46:44 [stdout] [GIN] 2026/06/03 - 10:46:44 | 200 | 45.2795ms | ::1 | GET "/assets/charts-CFCHr4e_.js"
10:47:29 [stdout] [GIN] 2026/06/03 - 10:47:29 | 426 | 0s | 127.0.0.1 | GET "/v1/responses"
10:47:29 [stdout] [GIN] 2026/06/03 - 10:47:29 | 426 | 0s | 127.0.0.1 | GET "/v1/responses"
10:47:29 [stdout] 2026/06/03 10:47:29.315412 [Responses-Key] 使用API密钥: sk-3VgjeNBhZS (BaseURL 1/1, 尝试 1/1)
10:47:31 [stdout] 2026/06/03 10:47:31.960272 [Responses-Failover-Entry] ShouldRetryWithNextKey 入口: statusCode=400, bodyLen=91, fuzzyMode=true
10:47:31 [stdout] 2026/06/03 10:47:31.960272 [Responses-Failover-Fuzzy] 进入 Fuzzy 模式处理: statusCode=400, bodyLen=91
10:47:31 [stdout] 2026/06/03 10:47:31.960272 [Responses-Failover-Fuzzy] 检测到不可重试错误 (statusCode=400),不进行 failover, body={"error":{"message":"Invalid request: tokenization failed","type":"invalid_request_error"}}
10:47:31 [stdout] [GIN] 2026/06/03 - 10:47:31 | 400 | 2.6470551s | 127.0.0.1 | POST "/v1/responses"
10:47:59 [stdout] [GIN] 2026/06/03 - 10:47:59 | 426 | 0s | 127.0.0.1 | GET "/v1/responses"
10:47:59 [stdout] [GIN] 2026/06/03 - 10:47:59 | 426 | 0s | 127.0.0.1 | GET "/v1/responses"
10:47:59 [stdout] 2026/06/03 10:47:59.132805 [Responses-Key] 使用API密钥: sk-3VgjeNBhZS (BaseURL 1/1, 尝试 1/1)
10:48:00 [stdout] 2026/06/03 10:48:00.385893 [Responses-Failover-Entry] ShouldRetryWithNextKey 入口: statusCode=400, bodyLen=91, fuzzyMode=true
10:48:00 [stdout] 2026/06/03 10:48:00.385893 [Responses-Failover-Fuzzy] 进入 Fuzzy 模式处理: statusCode=400, bodyLen=91
10:48:00 [stdout] 2026/06/03 10:48:00.385893 [Responses-Failover-Fuzzy] 检测到不可重试错误 (statusCode=400),不进行 failover, body={"error":{"message":"Invalid request: tokenization failed","type":"invalid_request_error"}}
10:48:00 [stdout] [GIN] 2026/06/03 - 10:48:00 | 400 | 1.2582357s | 127.0.0.1 | POST "/v1/responses"
10:48:06 [stdout] 2026/06/03 10:48:06.239961 [Responses-Key] 使用API密钥: sk-3VgjeNBhZS (BaseURL 1/1, 尝试 1/1)
10:48:08 [stdout] 2026/06/03 10:48:08.082052 [Responses-Failover-Entry] ShouldRetryWithNextKey 入口: statusCode=400, bodyLen=91, fuzzyMode=true
10:48:08 [stdout] 2026/06/03 10:48:08.082052 [Responses-Failover-Fuzzy] 进入 Fuzzy 模式处理: statusCode=400, bodyLen=91
10:48:08 [stdout] 2026/06/03 10:48:08.082052 [Responses-Failover-Fuzzy] 检测到不可重试错误 (statusCode=400),不进行 failover, body={"error":{"message":"Invalid request: tokenization failed","type":"invalid_request_error"}}
10:48:08 [stdout] [GIN] 2026/06/03 - 10:48:08 | 400 | 1.8452732s | 127.0.0.1 | POST "/v1/responses"
10:48:10 [stdout] [GIN] 2026/06/03 - 10:48:10 | 426 | 0s | 127.0.0.1 | GET "/v1/responses"
10:48:10 [stdout] 2026/06/03 10:48:10.227094 [Responses-Key] 使用API密钥: sk-3Vgje**NBhZS (BaseURL 1/1, 尝试 1/1)
10:48:11 [stdout] 2026/06/03 10:48:11.461184 [Responses-Failover-Entry] ShouldRetryWithNextKey 入口: statusCode=400, bodyLen=91, fuzzyMode=true
10:48:11 [stdout] 2026/06/03 10:48:11.461184 [Responses-Failover-Fuzzy] 进入 Fuzzy 模式处理: statusCode=400, bodyLen=91
10:48:11 [stdout] 2026/06/03 10:48:11.461184 [Responses-Failover-Fuzzy] 检测到不可重试错误 (statusCode=400),不进行 failover, body={"error":{"message":"Invalid request: tokenization failed","type":"invalid_request_error"}}
10:48:11 [stdout] [GIN] 2026/06/03 - 10:48:11 | 400 | 1.2362193s | 127.0.0.1 | POST "/v1/responses"
請問我是哪裡設置錯誤? 謝謝
All reactions