fix: 非流模式的思考转发

This commit is contained in:
ikechan8370 2025-01-30 11:42:51 +08:00
parent 3cd664ff53
commit 4b9dd0395d
2 changed files with 4 additions and 1 deletions

View file

@ -304,6 +304,9 @@ var ChatGPTAPI = /** @class */ (function () {
else if (message_1.tool_calls) {
result.functionCall = message_1.tool_calls.map(function (tool) { return tool.function; })[0];
}
else if (message_1.reasoning_content) {
result.thinking_text = message_1.reasoning_content;
}
if (message_1.role) {
result.role = message_1.role;
}

View file

@ -288,7 +288,7 @@ export namespace openai {
* @memberof ChatCompletionResponseMessage
*/
content: string
reasoning_content: string
function_call: FunctionCall,
tool_calls: ToolCall[]
}