graphlit-client 1.0.20250611018 → 1.0.20250611019

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 +10 -10
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -1419,26 +1419,26 @@ class Graphlit {
1419
1419
  if (process.env.DEBUG_GRAPHLIT_STREAMING) {
1420
1420
  console.log("[supportsStreaming] Checking support for:", {
1421
1421
  serviceType,
1422
- hasOpenAI: OpenAI !== undefined,
1423
- hasAnthropic: Anthropic !== undefined,
1424
- hasGoogle: GoogleGenerativeAI !== undefined,
1422
+ hasOpenAI: this.openaiClient !== undefined,
1423
+ hasAnthropic: this.anthropicClient !== undefined,
1424
+ hasGoogle: this.googleClient !== undefined,
1425
1425
  });
1426
1426
  }
1427
1427
  switch (serviceType) {
1428
1428
  case Types.ModelServiceTypes.OpenAi:
1429
- return OpenAI !== undefined;
1429
+ return this.openaiClient !== undefined;
1430
1430
  case Types.ModelServiceTypes.Anthropic:
1431
- return Anthropic !== undefined;
1431
+ return this.anthropicClient !== undefined;
1432
1432
  case Types.ModelServiceTypes.Google:
1433
- return GoogleGenerativeAI !== undefined;
1433
+ return this.googleClient !== undefined;
1434
1434
  default:
1435
1435
  return false;
1436
1436
  }
1437
1437
  }
1438
- // If we have no specification, check if OpenAI client is available
1439
- // We default to OpenAI GPT-4o if no specification provider.
1440
- const hasOpenAI = OpenAI !== undefined;
1441
- return hasOpenAI;
1438
+ // If we have no specification, check if any client is available
1439
+ return (this.openaiClient !== undefined ||
1440
+ this.anthropicClient !== undefined ||
1441
+ this.googleClient !== undefined);
1442
1442
  }
1443
1443
  /**
1444
1444
  * Execute an agent with non-streaming response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250611018",
3
+ "version": "1.0.20250611019",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",