fix(translator): stop emitting empty <think> markers into OpenAI content

This commit is contained in:
MrBeanDev
2026-09-26 11:31:54 +07:00
parent 3e4323e2fd
commit 5d2cfbf3c5
5 changed files with 185 additions and 38 deletions

View File

@@ -17,21 +17,6 @@ exports[`GOLDEN response stream: Claude → OpenAI > text + thinking + tool_use
"model": "claude-opus-4-6",
"object": "chat.completion.chunk",
},
{
"choices": [
{
"delta": {
"content": "<think>",
},
"finish_reason": null,
"index": 0,
},
],
"created": 0,
"id": "chatcmpl-msg_1",
"model": "claude-opus-4-6",
"object": "chat.completion.chunk",
},
{
"choices": [
{
@@ -47,21 +32,6 @@ exports[`GOLDEN response stream: Claude → OpenAI > text + thinking + tool_use
"model": "claude-opus-4-6",
"object": "chat.completion.chunk",
},
{
"choices": [
{
"delta": {
"content": "</think>",
},
"finish_reason": null,
"index": 0,
},
],
"created": 0,
"id": "chatcmpl-msg_1",
"model": "claude-opus-4-6",
"object": "chat.completion.chunk",
},
{
"choices": [
{