@aj-archipelago/cortex 1.3.33 → 1.3.35
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.
|
@@ -46,6 +46,17 @@
|
|
|
46
46
|
"maxReturnTokens": 2048,
|
|
47
47
|
"supportsStreaming": true
|
|
48
48
|
},
|
|
49
|
+
"gemini-pro-25-vision": {
|
|
50
|
+
"type": "GEMINI-VISION",
|
|
51
|
+
"url": "https://us-central1-aiplatform.googleapis.com/v1/projects/project-id/locations/us-central1/publishers/google/models/gemini-2.5-pro-exp-03-25:streamGenerateContent",
|
|
52
|
+
"headers": {
|
|
53
|
+
"Content-Type": "application/json"
|
|
54
|
+
},
|
|
55
|
+
"requestsPerSecond": 10,
|
|
56
|
+
"maxTokenLength": 1048576,
|
|
57
|
+
"maxReturnTokens": 65536,
|
|
58
|
+
"supportsStreaming": true
|
|
59
|
+
},
|
|
49
60
|
"claude-3-haiku-vertex": {
|
|
50
61
|
"type": "CLAUDE-3-VERTEX",
|
|
51
62
|
"url": "https://us-central1-aiplatform.googleapis.com/v1/projects/project-id/locations/us-central1/publishers/anthropic/models/claude-3-haiku@20240307",
|
package/lib/pathwayTools.js
CHANGED
|
@@ -54,11 +54,16 @@ const say = async (requestId, message, maxMessageLength = Infinity, voiceRespons
|
|
|
54
54
|
try {
|
|
55
55
|
const chunks = getSemanticChunks(message, maxMessageLength);
|
|
56
56
|
|
|
57
|
+
const info = JSON.stringify({
|
|
58
|
+
ephemeral: true,
|
|
59
|
+
});
|
|
60
|
+
|
|
57
61
|
for (let chunk of chunks) {
|
|
58
62
|
await publishRequestProgress({
|
|
59
63
|
requestId,
|
|
60
64
|
progress: 0.5,
|
|
61
|
-
data: JSON.stringify(chunk)
|
|
65
|
+
data: JSON.stringify(chunk),
|
|
66
|
+
info
|
|
62
67
|
});
|
|
63
68
|
}
|
|
64
69
|
|
|
@@ -66,14 +71,16 @@ const say = async (requestId, message, maxMessageLength = Infinity, voiceRespons
|
|
|
66
71
|
await publishRequestProgress({
|
|
67
72
|
requestId,
|
|
68
73
|
progress: 0.5,
|
|
69
|
-
data: JSON.stringify(" ... ")
|
|
74
|
+
data: JSON.stringify(" ... "),
|
|
75
|
+
info
|
|
70
76
|
});
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
await publishRequestProgress({
|
|
74
80
|
requestId,
|
|
75
81
|
progress: 0.5,
|
|
76
|
-
data: JSON.stringify("\n\n")
|
|
82
|
+
data: JSON.stringify("\n\n"),
|
|
83
|
+
info
|
|
77
84
|
});
|
|
78
85
|
|
|
79
86
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aj-archipelago/cortex",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.35",
|
|
4
4
|
"description": "Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|