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.
- package/dist/client.js +10 -10
- 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:
|
1423
|
-
hasAnthropic:
|
1424
|
-
hasGoogle:
|
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
|
1429
|
+
return this.openaiClient !== undefined;
|
1430
1430
|
case Types.ModelServiceTypes.Anthropic:
|
1431
|
-
return
|
1431
|
+
return this.anthropicClient !== undefined;
|
1432
1432
|
case Types.ModelServiceTypes.Google:
|
1433
|
-
return
|
1433
|
+
return this.googleClient !== undefined;
|
1434
1434
|
default:
|
1435
1435
|
return false;
|
1436
1436
|
}
|
1437
1437
|
}
|
1438
|
-
// If we have no specification, check if
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
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
|