先说说使用环境:自己的单个GPT PRO账号------CPA转接(这里主要是为了统一代理,不用每个机器装一个代理)------Axonhub(因为还有其他模型,一起管理)------opencode+OMO
在两台开发机上都发现同样的问题(不同的OC版本,一个1.3.17,一个1.4.8):经常出现如图所示的报错,尤其感觉是写入长文本或者一条回复比较长报错概率会更大,非常影响开发。
我又分析了一下请求,似乎是思考/输出太长,openai先返回了一个空响应,但是在OC侧被错误处理了?
请各位大师帮忙看看!
我逐步审视:
Axonhub接收到的相应如下:
{
id:
"resp_0cc95817ee988d150169e25f7278ec8199a1176c6b7dafb37b"
model:
"gpt-5.4"
object:
"response"
output[
]
status:
"in_progress"
created_at:
1776443251
}
OC显示报错文本如下:
Type validation failed: Value: {"error":{"code":"internal_server_error","message":"unexpected EOF","type":""}}.
Error message: [
{
"code": "invalid_union",
"errors": [
[
{
"code": "invalid_value",
"values": [
"response.output_text.delta"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.output_text.delta\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"delta"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.completed",
"response.incomplete"
],
"path": [
"type"
],
"message": "Invalid option: expected one of \"response.completed\"|\"response.incomplete\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"response"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.failed"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.failed\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"response"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.created"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.created\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"response"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.output_item.added"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.output_item.added\""
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"code": "invalid_type",
"expected": "object",
"path": [
"item"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.output_item.done"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.output_item.done\""
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"code": "invalid_type",
"expected": "object",
"path": [
"item"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.function_call_arguments.delta"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.function_call_arguments.delta\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"delta"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.custom_tool_call_input.delta"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.custom_tool_call_input.delta\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"delta"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.image_generation_call.partial_image"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.image_generation_call.partial_image\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"partial_image_b64"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.code_interpreter_call_code.delta"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.code_interpreter_call_code.delta\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"delta"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.code_interpreter_call_code.done"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.code_interpreter_call_code.done\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"code"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.output_text.annotation.added"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.output_text.annotation.added\""
},
{
"code": "invalid_type",
"expected": "object",
"path": [
"annotation"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.reasoning_summary_part.added"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.reasoning_summary_part.added\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"summary_index"
],
"message": "Invalid input: expected number, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.reasoning_summary_text.delta"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.reasoning_summary_text.delta\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"summary_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"delta"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.reasoning_summary_part.done"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.reasoning_summary_part.done\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"summary_index"
],
"message": "Invalid input: expected number, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.apply_patch_call_operation_diff.delta"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.apply_patch_call_operation_diff.delta\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"delta"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"response.apply_patch_call_operation_diff.done"
],
"path": [
"type"
],
"message": "Invalid input: expected \"response.apply_patch_call_operation_diff.done\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"item_id"
],
"message": "Invalid input: expected string, received undefined"
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"output_index"
],
"message": "Invalid input: expected number, received undefined"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"diff"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"code": "invalid_value",
"values": [
"error"
],
"path": [
"type"
],
"message": "Invalid input: expected \"error\""
},
{
"expected": "number",
"code": "invalid_type",
"path": [
"sequence_number"
],
"message": "Invalid input: expected number, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"type"
],
"message": "Invalid input: expected string, received undefined"
}
]
],
"path": [],
"message": "Invalid input"
}
]
1 个帖子 - 1 位参与者