Skip to content

Commit

Permalink
OV-52: * openAi service
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy4 committed Aug 24, 2024
1 parent 6b646bb commit 1c3f5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/bundles/chat/open-ai.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class OpenAIService implements OpenAIServiceModule {
break;
}

messages.splice(1, 1);
messages.splice(0, 1);

totalTokens -= this.modelEncoding.encode(
removedMessage.content,
Expand Down

0 comments on commit 1c3f5ef

Please sign in to comment.