symposium 0.13.2 → 0.13.4

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.
@@ -139,6 +139,27 @@ export default class OpenAIModel extends Model {
139
139
  });
140
140
  break;
141
141
 
142
+ case 'audio':
143
+ if (c.content.type !== 'base64')
144
+ throw new Error('Audio content must be base64 encoded for this model');
145
+ if (c.content.mime.startsWith('audio/'))
146
+ throw new Error('Audio content must have a valid MIME type');
147
+
148
+ messages.push({
149
+ role,
150
+ content: [
151
+ {
152
+ type: 'input_audio',
153
+ input_audio: {
154
+ data: c.content.data,
155
+ format: c.content.mime.substring(6), // Remove 'audio/' prefix
156
+ },
157
+ },
158
+ ],
159
+ name: message.name,
160
+ });
161
+ break;
162
+
142
163
  case 'function':
143
164
  if (this.supports_functions) {
144
165
  messages.push({
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.13.2",
4
+ "version": "0.13.4",
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.52.0",
10
+ "@anthropic-ai/sdk": "^0.53.0",
11
11
  "groq-sdk": "^0.23.0",
12
12
  "openai": "^5.0.0",
13
13
  "tiktoken": "^1.0.10"