fix: empty response

This commit is contained in:
Dogtiti 2024-08-02 22:16:08 +08:00
parent 8c83fe23a1
commit 4a8e85c28a
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ export class ChatGPTApi implements LLMApi {
},
];
}
return res.choices?.at(0)?.message?.content ?? "";
return res.choices?.at(0)?.message?.content ?? res;
}
async chat(options: ChatOptions) {