Skip to content

Commit

Permalink
fix: redundant array from
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit authored and EYHN committed Apr 3, 2024
1 parent da45911 commit d33a2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/server/src/plugins/copilot/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getTokenEncoder(model?: string | null): Tiktoken | undefined {

// ======== ChatMessage ========

export const ChatMessageRole = Array.from(Object.values(AiPromptRole)) as [
export const ChatMessageRole = Object.values(AiPromptRole) as [
'system',
'assistant',
'user',
Expand Down

0 comments on commit d33a2e1

Please sign in to comment.