Skip to content

Commit

Permalink
fix: role type assert
Browse files Browse the repository at this point in the history
  • Loading branch information
AprilNEA committed Dec 10, 2023
1 parent 47aa502 commit 815aa51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/modules/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ ${message}

const histories: OpenAI.ChatCompletionMessage[] = messages.map(
({ role, content }) => ({
role: role.toLowerCase() as OpenAI.ChatCompletionRole,
role: role.toLowerCase() as unknown as OpenAI.ChatCompletionRole,
content,
}),
);
Expand Down

0 comments on commit 815aa51

Please sign in to comment.