symposium 0.13.5 → 0.13.6

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.
@@ -142,7 +142,7 @@ export default class OpenAIModel extends Model {
142
142
  case 'audio':
143
143
  if (c.content.type !== 'base64')
144
144
  throw new Error('Audio content must be base64 encoded for this model');
145
- if (!c.content.mime.startsWith('audio/'))
145
+ if (!['audio/mpeg', 'audio/wav'].includes(c.content.mime))
146
146
  throw new Error('Audio content must have a valid MIME type');
147
147
 
148
148
  messages.push({
@@ -152,7 +152,7 @@ export default class OpenAIModel extends Model {
152
152
  type: 'input_audio',
153
153
  input_audio: {
154
154
  data: c.content.data,
155
- format: c.content.mime.substring(6), // Remove 'audio/' prefix
155
+ format: c.content.mime === 'audio/mpeg' ? 'mp3' : 'wav',
156
156
  },
157
157
  },
158
158
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.13.5",
4
+ "version": "0.13.6",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",