Is it a request payload issue?
[ x ] Yes, this is a request payload issue. I am using a client/cURL to send a request payload, but I received an unexpected error.
[ ] No, it's another issue.
If it's a request payload issue, you MUST know
Note: The following error was captured during the API call:
{"error": {"message": "Missing required parameter: input[5].name.", "type": "invalid_request_error"}}
Describe the bug
在使用 OpenAI Compatible Providers(中转站)协议接入时,请求 payload 校验失败。报错信息显示 messages 数组中索引为 5 的对象缺少必要的 name 参数。这通常发生在涉及多轮对话或工具调用(Tool Calls)的上下文传输中,中转网关无法正确解析不完整的 message 对象。
CLI Type
claude-cli
Model Name
gpt-5.4
LLM Client
cline
2026-04-01T15:40:02.994Z [ERROR] Error: Error: Tool not found
at vFK (/$bunfs/root/src/entrypoints/cli.js:1961:29454)
at fA (/$bunfs/root/src/entrypoints/cli.js:479:20993)
at o3 (/$bunfs/root/src/entrypoints/cli.js:479:39530)
at Ak (/$bunfs/root/src/entrypoints/cli.js:479:50220)
at HCH (/$bunfs/root/src/entrypoints/cli.js:479:86872)
at tIH (/$bunfs/root/src/entrypoints/cli.js:479:85835)
at OjH (/$bunfs/root/src/entrypoints/cli.js:479:85656)
at A7$ (/$bunfs/root/src/entrypoints/cli.js:479:82024)
at EH (/$bunfs/root/src/entrypoints/cli.js:479:6362)
at BV8 (/$bunfs/root/src/entrypoints/cli.js:472:6354)
2026-04-01T15:40:02.995Z [ERROR] Error: Error: Tool not found
at vFK (/$bunfs/root/src/entrypoints/cli.js:1961:29454)
at fA (/$bunfs/root/src/entrypoints/cli.js:479:20993)
at o3 (/$bunfs/root/src/entrypoints/cli.js:479:39530)
at Ak (/$bunfs/root/src/entrypoints/cli.js:479:50220)
at HCH (/$bunfs/root/src/entrypoints/cli.js:479:86872)
at tIH (/$bunfs/root/src/entrypoints/cli.js:479:85835)
at OjH (/$bunfs/root/src/entrypoints/cli.js:479:85656)
at A7$ (/$bunfs/root/src/entrypoints/cli.js:479:82024)
at EH (/$bunfs/root/src/entrypoints/cli.js:479:6362)
at BV8 (/$bunfs/root/src/entrypoints/cli.js:472:6354)
2026-04-01T15:40:02.995Z [ERROR] Error: Error: Tool not found
at vFK (/$bunfs/root/src/entrypoints/cli.js:1961:29454)
at fA (/$bunfs/root/src/entrypoints/cli.js:479:20993)
at o3 (/$bunfs/root/src/entrypoints/cli.js:479:39530)
at Ak (/$bunfs/root/src/entrypoints/cli.js:479:50220)
at HCH (/$bunfs/root/src/entrypoints/cli.js:479:86872)
at tIH (/$bunfs/root/src/entrypoints/cli.js:479:85835)
at OjH (/$bunfs/root/src/entrypoints/cli.js:479:85656)
at A7$ (/$bunfs/root/src/entrypoints/cli.js:479:82024)
at EH (/$bunfs/root/src/entrypoints/cli.js:479:6362)
at BV8 (/$bunfs/root/src/entrypoints/cli.js:472:6354)
2026-04-01T15:40:02.996Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:02.999Z [DEBUG] High write ratio: blit=0, write=2296 (100.0% writes), screen=45x157
2026-04-01T15:40:03.000Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:04.634Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:05.110Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:07.207Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:08.227Z [ERROR] API error (attempt 1/11): 400 400 {"error":{"message":"Missing required parameter: 'input[4].name'.","type":"invalid_request_error"}}
2026-04-01T15:40:08.229Z [ERROR] Error in API request: 400 {"error":{"message":"Missing required parameter: 'input[4].name'.","type":"invalid_request_error"}}
2026-04-01T15:40:08.230Z [ERROR] Error: Error: 400 {"error":{"message":"Missing required parameter: 'input[4].name'.","type":"invalid_request_error"}}
at generate (/$bunfs/root/src/entrypoints/cli.js:11:51392)
at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)
at processTicksAndRejections (native:7:39)
2026-04-01T15:40:08.233Z [DEBUG] Preserving file permissions: 100600
2026-04-01T15:40:08.233Z [DEBUG] Writing to temp file: /home/nanfeng/.claude.json.tmp.97721.1775058008233
2026-04-01T15:40:08.234Z [DEBUG] Temp file written successfully, size: 27679 bytes
2026-04-01T15:40:08.234Z [DEBUG] Applied original permissions to temp file
2026-04-01T15:40:08.234Z [DEBUG] Renaming /home/nanfeng/.claude.json.tmp.97721.1775058008233 to /home/nanfeng/.claude.json
2026-04-01T15:40:08.234Z [DEBUG] File /home/nanfeng/.claude.json written atomically
2026-04-01T15:40:08.234Z [DEBUG] [useDeferredValue] Messages deferred by 1 (13→14)
2026-04-01T15:40:08.237Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:08.241Z [DEBUG] High write ratio: blit=0, write=2272 (100.0% writes), screen=43x157
2026-04-01T15:40:08.247Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:08.454Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:10.101Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
2026-04-01T15:40:11.020Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization
Expected behavior
请求应正常发送并获得模型回复。即便在 Tool Use 场景下,客户端应自动补全 name 字段,或中转协议层应具备更好的向下兼容性,不因缺少 name 属性而直接阻断请求。
Screenshots

Additional context
该问题主要出现在使用第三方 OpenAI 适配中转站(如 OneAPI, NewAPI 等)时。这类中转层通常会对 OpenAI 协议进行严格校验,如果 role 为 tool 的消息中缺失 name 字段,会导致请求被网关层拦截并返回 invalid_request_error。
Is it a request payload issue?
[ x ] Yes, this is a request payload issue. I am using a client/cURL to send a request payload, but I received an unexpected error.
[ ] No, it's another issue.
If it's a request payload issue, you MUST know
Describe the bug
在使用 OpenAI Compatible Providers(中转站)协议接入时,请求 payload 校验失败。报错信息显示
messages数组中索引为5的对象缺少必要的name参数。这通常发生在涉及多轮对话或工具调用(Tool Calls)的上下文传输中,中转网关无法正确解析不完整的 message 对象。CLI Type
claude-cliModel Name
gpt-5.4LLM Client
cline2026-04-01T15:40:02.994Z [ERROR] Error: Error: Tool not found at vFK (/$bunfs/root/src/entrypoints/cli.js:1961:29454) at fA (/$bunfs/root/src/entrypoints/cli.js:479:20993) at o3 (/$bunfs/root/src/entrypoints/cli.js:479:39530) at Ak (/$bunfs/root/src/entrypoints/cli.js:479:50220) at HCH (/$bunfs/root/src/entrypoints/cli.js:479:86872) at tIH (/$bunfs/root/src/entrypoints/cli.js:479:85835) at OjH (/$bunfs/root/src/entrypoints/cli.js:479:85656) at A7$ (/$bunfs/root/src/entrypoints/cli.js:479:82024) at EH (/$bunfs/root/src/entrypoints/cli.js:479:6362) at BV8 (/$bunfs/root/src/entrypoints/cli.js:472:6354) 2026-04-01T15:40:02.995Z [ERROR] Error: Error: Tool not found at vFK (/$bunfs/root/src/entrypoints/cli.js:1961:29454) at fA (/$bunfs/root/src/entrypoints/cli.js:479:20993) at o3 (/$bunfs/root/src/entrypoints/cli.js:479:39530) at Ak (/$bunfs/root/src/entrypoints/cli.js:479:50220) at HCH (/$bunfs/root/src/entrypoints/cli.js:479:86872) at tIH (/$bunfs/root/src/entrypoints/cli.js:479:85835) at OjH (/$bunfs/root/src/entrypoints/cli.js:479:85656) at A7$ (/$bunfs/root/src/entrypoints/cli.js:479:82024) at EH (/$bunfs/root/src/entrypoints/cli.js:479:6362) at BV8 (/$bunfs/root/src/entrypoints/cli.js:472:6354) 2026-04-01T15:40:02.995Z [ERROR] Error: Error: Tool not found at vFK (/$bunfs/root/src/entrypoints/cli.js:1961:29454) at fA (/$bunfs/root/src/entrypoints/cli.js:479:20993) at o3 (/$bunfs/root/src/entrypoints/cli.js:479:39530) at Ak (/$bunfs/root/src/entrypoints/cli.js:479:50220) at HCH (/$bunfs/root/src/entrypoints/cli.js:479:86872) at tIH (/$bunfs/root/src/entrypoints/cli.js:479:85835) at OjH (/$bunfs/root/src/entrypoints/cli.js:479:85656) at A7$ (/$bunfs/root/src/entrypoints/cli.js:479:82024) at EH (/$bunfs/root/src/entrypoints/cli.js:479:6362) at BV8 (/$bunfs/root/src/entrypoints/cli.js:472:6354) 2026-04-01T15:40:02.996Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:02.999Z [DEBUG] High write ratio: blit=0, write=2296 (100.0% writes), screen=45x157 2026-04-01T15:40:03.000Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:04.634Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:05.110Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:07.207Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:08.227Z [ERROR] API error (attempt 1/11): 400 400 {"error":{"message":"Missing required parameter: 'input[4].name'.","type":"invalid_request_error"}} 2026-04-01T15:40:08.229Z [ERROR] Error in API request: 400 {"error":{"message":"Missing required parameter: 'input[4].name'.","type":"invalid_request_error"}} 2026-04-01T15:40:08.230Z [ERROR] Error: Error: 400 {"error":{"message":"Missing required parameter: 'input[4].name'.","type":"invalid_request_error"}} at generate (/$bunfs/root/src/entrypoints/cli.js:11:51392) at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435) at processTicksAndRejections (native:7:39) 2026-04-01T15:40:08.233Z [DEBUG] Preserving file permissions: 100600 2026-04-01T15:40:08.233Z [DEBUG] Writing to temp file: /home/nanfeng/.claude.json.tmp.97721.1775058008233 2026-04-01T15:40:08.234Z [DEBUG] Temp file written successfully, size: 27679 bytes 2026-04-01T15:40:08.234Z [DEBUG] Applied original permissions to temp file 2026-04-01T15:40:08.234Z [DEBUG] Renaming /home/nanfeng/.claude.json.tmp.97721.1775058008233 to /home/nanfeng/.claude.json 2026-04-01T15:40:08.234Z [DEBUG] File /home/nanfeng/.claude.json written atomically 2026-04-01T15:40:08.234Z [DEBUG] [useDeferredValue] Messages deferred by 1 (13→14) 2026-04-01T15:40:08.237Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:08.241Z [DEBUG] High write ratio: blit=0, write=2272 (100.0% writes), screen=43x157 2026-04-01T15:40:08.247Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:08.454Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:10.101Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organization 2026-04-01T15:40:11.020Z [DEBUG] Fast mode unavailable: Fast mode has been disabled by your organizationExpected behavior
请求应正常发送并获得模型回复。即便在 Tool Use 场景下,客户端应自动补全
name字段,或中转协议层应具备更好的向下兼容性,不因缺少name属性而直接阻断请求。Screenshots

Additional context
该问题主要出现在使用第三方 OpenAI 适配中转站(如 OneAPI, NewAPI 等)时。这类中转层通常会对 OpenAI 协议进行严格校验,如果
role为tool的消息中缺失name字段,会导致请求被网关层拦截并返回invalid_request_error。