symposium 1.0.1 → 1.0.3

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
@@ -215,16 +215,10 @@ export default class Agent {
215
215
  if (obj.type !== 'object')
216
216
  return {obj, count: 0};
217
217
 
218
- let properties_count = 0, all_required = false, required = [];
219
- if (obj.required)
220
- required = obj.required;
221
- else
222
- all_required = true;
223
-
218
+ let properties_count = 0, required = [];
224
219
  for (let [key, property] of Object.entries(obj.properties || {})) {
225
220
  properties_count++;
226
- if (all_required)
227
- required.push(key);
221
+ required.push(key); // OpenAI requires all properties to be required
228
222
 
229
223
  if (property.type === 'object') {
230
224
  const {obj: subobj, count} = this.convertFunctionToResponseFormat(property);
package/README.md CHANGED
@@ -27,7 +27,7 @@ Symposium uses environment variables to configure access to various services. Yo
27
27
  - `ANTHROPIC_API_KEY`: Required for using Anthropic models.
28
28
  - `GROQ_API_KEY`: Required for using Groq models.
29
29
  - `DEEPSEEK_API_KEY`: Required for using DeepSeek models.
30
- - `TRANSCRIPTION_MODEL`: (Optional) The name of the model to use for audio transcription (currently, only `gpt4o-transcribe` is supported).
30
+ - `TRANSCRIPTION_MODEL`: (Optional) The name of the model to use for audio transcription (currently, only `gpt-4o-transcribe` is supported).
31
31
 
32
32
  ## Core Concepts
33
33
 
@@ -2,7 +2,7 @@ import OpenAIModel from "./OpenAIModel.js";
2
2
 
3
3
  export default class Gpt4oTranscribe extends OpenAIModel {
4
4
  type = 'stt';
5
- name = 'gpt4o-transcribe';
5
+ name = 'gpt-4o-transcribe';
6
6
 
7
7
  async transcribe(file, prompt = null) {
8
8
  const response = await this.getOpenAi().audio.transcriptions.create({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",