Skip to content

Commit

Permalink
[Obs AI Assistant] Fix failing tests in serverless due to not emittin…
Browse files Browse the repository at this point in the history
…g the tokenCount event (#203407)
  • Loading branch information
viduni94 committed Jan 2, 2025
1 parent 34e1401 commit 7aa27b1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
],
});
await conversationSimulator.tokenCount({ completion: 0, prompt: 0, total: 0 });
await conversationSimulator.complete();
}
);
Expand All @@ -276,6 +277,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
before(async () => {
responseBody = await getOpenAIResponse(async (conversationSimulator) => {
await conversationSimulator.next('Hello');
await conversationSimulator.tokenCount({ completion: 1, prompt: 1, total: 2 });
await conversationSimulator.complete();
});
});
Expand Down

0 comments on commit 7aa27b1

Please sign in to comment.