symposium 0.14.15 → 0.14.17

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 CHANGED
@@ -90,7 +90,7 @@ export default class Agent {
90
90
  }
91
91
 
92
92
  const model = Symposium.getModelByName(thread.state.model);
93
- if (!model.supports_audio) {
93
+ if (!model.supports_audio && typeof content !== 'string') {
94
94
  for (let c of content) {
95
95
  if (c.type === 'audio' && !c.content?.transcription) {
96
96
  const words = await this.getPromptWordsForTranscription(thread);
package/Symposium.js CHANGED
@@ -29,7 +29,7 @@ export default class Symposium {
29
29
  * - async get(key)
30
30
  * - async set(key, value)
31
31
  */
32
- static async init(storage) {
32
+ static async init(storage = null) {
33
33
  this.loadModel(new Gpt35());
34
34
  this.loadModel(new Gpt4());
35
35
  this.loadModel(new Gpt4Turbo());
@@ -52,8 +52,10 @@ export default class Symposium {
52
52
 
53
53
  this.loadModel(new Grok4());
54
54
 
55
- this.storage = storage;
56
- await this.storage.init();
55
+ if (storage) {
56
+ this.storage = storage;
57
+ await this.storage.init();
58
+ }
57
59
  }
58
60
 
59
61
  static loadModel(model) {
package/models/Gpt5.js CHANGED
@@ -4,4 +4,5 @@ export default class Gpt5 extends OpenAIModel {
4
4
  name = 'gpt-5';
5
5
  label = 'gpt-5';
6
6
  tokens = 400000;
7
+ supports_structured_output = true;
7
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.14.15",
4
+ "version": "0.14.17",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",