graphlit-client 1.0.20250615006 → 1.0.20250617001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +3 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
@@ -2392,8 +2392,9 @@ class Graphlit {
|
|
2392
2392
|
}
|
2393
2393
|
// Complete the conversation and get token count
|
2394
2394
|
let finalTokens;
|
2395
|
-
|
2396
|
-
|
2395
|
+
const trimmedMessage = fullMessage?.trim();
|
2396
|
+
if (trimmedMessage) {
|
2397
|
+
const completeResponse = await this.completeConversation(trimmedMessage, conversationId, correlationId);
|
2397
2398
|
// Extract token count from the response
|
2398
2399
|
finalTokens =
|
2399
2400
|
completeResponse.completeConversation?.message?.tokens ?? undefined;
|