mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 非流模式的思考转发
This commit is contained in:
parent
3cd664ff53
commit
4b9dd0395d
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue