Skip to content

Commit

Permalink
fix: empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Aug 2, 2024
1 parent 8c83fe2 commit 4a8e85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a8e85c

Please sign in to comment.