mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
Merge pull request #668 from Yukuiii/fix-prompt-issue
fix: 添加对gpt-5.1模型的提示词判断
This commit is contained in:
@@ -260,7 +260,8 @@ const handleResponses = async (req, res) => {
|
||||
// 判断是否为 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')
|
||||
req.body?.instructions?.startsWith('You are Codex') ||
|
||||
req.body?.instructions?.startsWith('You are GPT-5.1 running in the Codex CLI')
|
||||
|
||||
// 如果不是 Codex CLI 请求,则进行适配
|
||||
if (!isCodexCLI) {
|
||||
|
||||
Reference in New Issue
Block a user