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.
Files changed (2) hide show
  1. package/dist/client.js +3 -2
  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
- if (fullMessage) {
2396
- const completeResponse = await this.completeConversation(fullMessage.trim(), conversationId, correlationId);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250615006",
3
+ "version": "1.0.20250617001",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",