mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复codex 客户端问题
This commit is contained in:
@@ -258,9 +258,9 @@ const handleResponses = async (req, res) => {
|
||||
const isStream = req.body?.stream !== false // 默认为流式(兼容现有行为)
|
||||
|
||||
// 判断是否为 Codex CLI 的请求
|
||||
const isCodexCLI = req.body?.instructions?.startsWith(
|
||||
'You are a coding agent running in the Codex CLI'
|
||||
)
|
||||
const isCodexCLI =
|
||||
req.body?.instructions?.startsWith('You are a coding agent running in the Codex CLI') ||
|
||||
req.body?.instructions?.startsWith('You are Codex')
|
||||
|
||||
// 如果不是 Codex CLI 请求,则进行适配
|
||||
if (!isCodexCLI) {
|
||||
|
||||
Reference in New Issue
Block a user