Skip to content

Commit

Permalink
fix: user content format when no images (#538)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Du <[email protected]>
  • Loading branch information
BobDu authored May 14, 2024
1 parent c01895a commit 15d0504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ async function getMessageById(id: string): Promise<ChatMessage | undefined> {
url: string
}
}[] = chatInfo.prompt
if (chatInfo.images) {
if (chatInfo.images && chatInfo.images.length > 0) {
content = [
{
type: 'text',
Expand Down

0 comments on commit 15d0504

Please sign in to comment.