symposium 0.14.9 → 0.14.11
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/Agent.js +2 -2
- package/models/Gpt5.js +7 -0
- package/models/Grok4Model.js +7 -0
- package/models/GrokModel.js +15 -0
- package/package.json +3 -3
package/Agent.js
CHANGED
|
@@ -422,8 +422,8 @@ export default class Agent {
|
|
|
422
422
|
for (let message of thread.messages) {
|
|
423
423
|
if (message.role === 'system')
|
|
424
424
|
system_message.push(message.content.map(c => c.content).join("\n"));
|
|
425
|
-
else
|
|
426
|
-
conversation.push('[' + message.role + '] ' + message.content.map(c => (typeof c.content === 'string' ? c.content : (c.content.transcription ||
|
|
425
|
+
else if (!message.tags?.includes('reasoning'))
|
|
426
|
+
conversation.push('[' + message.role + '] ' + message.content.map(c => (typeof c.content === 'string' ? c.content : (c.content.transcription || JSON.stringify(c.content)))).filter(c => !!c).join("\n"));
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
let instructions = system_message.join('\n');
|
package/models/Gpt5.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import OpenAIModel from "./OpenAIModel.js";
|
|
2
|
+
import OpenAI from "openai";
|
|
3
|
+
|
|
4
|
+
export default class GrokModel extends OpenAIModel {
|
|
5
|
+
getOpenAi() {
|
|
6
|
+
if (!this.openai) {
|
|
7
|
+
this.openai = new OpenAI({
|
|
8
|
+
baseURL: 'https://api.x.ai/v1',
|
|
9
|
+
apiKey: process.env.GROK_API_KEY,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return this.openai;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "symposium",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.11",
|
|
5
5
|
"description": "Agents",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": "Domenico Giambra",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@anthropic-ai/sdk": "^0.
|
|
11
|
-
"groq-sdk": "^0.
|
|
10
|
+
"@anthropic-ai/sdk": "^0.59.0",
|
|
11
|
+
"groq-sdk": "^0.30.0",
|
|
12
12
|
"openai": "^5.0.0",
|
|
13
13
|
"tiktoken": "^1.0.10",
|
|
14
14
|
"uuid": "^11.1.0"
|