mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 05:51:28 +00:00
Fix minor issues related to total tokens calculation
This commit is contained in:
parent
346218b512
commit
318dd4286a
24 changed files with 424 additions and 397 deletions
|
|
@ -49,7 +49,11 @@ public class StandardChatToolWindowTabPanelTest extends IntegrationTest {
|
|||
|
||||
panel.sendMessage(message);
|
||||
|
||||
await().atMost(5, SECONDS).until(() -> !panel.isStreaming());
|
||||
await().atMost(5, SECONDS)
|
||||
.until(() -> {
|
||||
var messages = conversation.getMessages();
|
||||
return !messages.isEmpty() && "Hello!".equals(messages.get(0).getResponse());
|
||||
});
|
||||
var encodingManager = EncodingManager.getInstance();
|
||||
assertThat(panel.getTokenDetails()).extracting(
|
||||
"systemPromptTokens",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue