File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ public class CopilotSDK {
103103 session. on(SessionUsageInfoEvent . class, usage - > {
104104 var data = usage. getData();
105105 System . out. println(" \n --- Usage Metrics ---" );
106- System . out. println(" Current tokens: " + ( int ) data. currentTokens());
107- System . out. println(" Token limit: " + ( int ) data. tokenLimit());
108- System . out. println(" Messages count: " + ( int ) data. messagesLength());
106+ System . out. println(" Current tokens: " + data. currentTokens() . intValue ());
107+ System . out. println(" Token limit: " + data. tokenLimit() . intValue ());
108+ System . out. println(" Messages count: " + data. messagesLength() . intValue ());
109109 });
110110
111111 // Send a message
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public static void main(String[] args) throws Exception {
2828 session .on (SessionUsageInfoEvent .class , usage -> {
2929 var data = usage .getData ();
3030 out .println ("\n --- Usage Metrics ---" );
31- out .println ("Current tokens: " + ( int ) data .currentTokens ());
32- out .println ("Token limit: " + ( int ) data .tokenLimit ());
33- out .println ("Messages count: " + ( int ) data .messagesLength ());
31+ out .println ("Current tokens: " + data .currentTokens (). intValue ());
32+ out .println ("Token limit: " + data .tokenLimit (). intValue ());
33+ out .println ("Messages count: " + data .messagesLength (). intValue ());
3434 });
3535
3636 // Send a message
You can’t perform that action at this time.
0 commit comments