mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: content和reasoning_content是同时出现的
This commit is contained in:
parent
6442e371ee
commit
65bb1539e2
2 changed files with 2 additions and 5 deletions
|
|
@ -316,9 +316,8 @@ export class ChatGPTAPI {
|
|||
result.functionCall = message.function_call
|
||||
} else if (message.tool_calls) {
|
||||
result.functionCall = message.tool_calls.map(tool => tool.function)[0]
|
||||
} else if (message.reasoning_content) {
|
||||
result.thinking_text = message.reasoning_content
|
||||
}
|
||||
result.thinking_text = message.reasoning_content
|
||||
if (message.role) {
|
||||
result.role = message.role
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue