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 +2 -8
- package/README.md +1 -1
- package/models/Gpt4oTranscribe.js +1 -1
- package/package.json +1 -1
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,
|
|
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
|
-
|
|
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 `
|
|
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 = '
|
|
5
|
+
name = 'gpt-4o-transcribe';
|
|
6
6
|
|
|
7
7
|
async transcribe(file, prompt = null) {
|
|
8
8
|
const response = await this.getOpenAi().audio.transcriptions.create({
|