Skip to content

Commit 747d068

Browse files
authored
Deduplicate npm dependencies (#109)
* Deduplicate npm dependencies * Update openAI settings schema
1 parent 77b5cf8 commit 747d068

File tree

2 files changed

+98
-541
lines changed

2 files changed

+98
-541
lines changed

src/default-providers/OpenAI/settings-schema.json

Lines changed: 73 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,40 @@
228228
],
229229
"additionalProperties": false,
230230
"description": "Learn about [audio inputs](https://platform.openai.com/docs/guides/audio)."
231+
},
232+
{
233+
"type": "object",
234+
"properties": {
235+
"file": {
236+
"type": "object",
237+
"properties": {
238+
"file_data": {
239+
"type": "string",
240+
"description": "The base64 encoded file data, used when passing the file to the model as a string."
241+
},
242+
"file_id": {
243+
"type": "string",
244+
"description": "The ID of an uploaded file to use as input."
245+
},
246+
"filename": {
247+
"type": "string",
248+
"description": "The name of the file, used when passing the file to the model as a string."
249+
}
250+
},
251+
"additionalProperties": false
252+
},
253+
"type": {
254+
"type": "string",
255+
"const": "file",
256+
"description": "The type of the content part. Always `file`."
257+
}
258+
},
259+
"required": [
260+
"file",
261+
"type"
262+
],
263+
"additionalProperties": false,
264+
"description": "Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text generation."
231265
}
232266
],
233267
"description": "Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation)."
@@ -538,6 +572,7 @@
538572
"type": "string",
539573
"enum": [
540574
"wav",
575+
"aac",
541576
"mp3",
542577
"flac",
543578
"opus",
@@ -546,18 +581,28 @@
546581
"description": "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`, or `pcm16`."
547582
},
548583
"voice": {
549-
"type": "string",
550-
"enum": [
551-
"alloy",
552-
"ash",
553-
"ballad",
554-
"coral",
555-
"echo",
556-
"sage",
557-
"shimmer",
558-
"verse"
584+
"anyOf": [
585+
{
586+
"type": "string"
587+
},
588+
{
589+
"type": "string",
590+
"enum": [
591+
"alloy",
592+
"ash",
593+
"ballad",
594+
"coral",
595+
"echo",
596+
"fable",
597+
"onyx",
598+
"nova",
599+
"sage",
600+
"shimmer",
601+
"verse"
602+
]
603+
}
559604
],
560-
"description": "The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`, `sage`, and `verse` (also supported but not recommended are `alloy`, `echo`, and `shimmer`; these voices are less expressive)."
605+
"description": "The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`."
561606
}
562607
},
563608
"required": [
@@ -568,11 +613,23 @@
568613
"description": "Parameters for audio output. Required when audio output is requested with `modalities: [\"audio\"]`. [Learn more](https://platform.openai.com/docs/guides/audio)."
569614
},
570615
"reasoningEffort": {
571-
"type": "string",
572-
"enum": [
573-
"low",
574-
"medium",
575-
"high"
616+
"anyOf": [
617+
{
618+
"type": [
619+
"string",
620+
"null"
621+
],
622+
"enum": [
623+
"low",
624+
"medium",
625+
"high",
626+
null
627+
],
628+
"description": "**o-series models only**\n\nConstrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `low`, `medium`, and `high`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response."
629+
},
630+
{
631+
"type": "null"
632+
}
576633
],
577634
"description": "Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response."
578635
},

0 commit comments

Comments
 (0)