Skip to content

Commit 480541a

Browse files
committed
feat(openapi): add chatgpt-4o-latest model and Cartesia voice controls
1 parent 2fa13ec commit 480541a

File tree

1 file changed

+70
-7
lines changed

1 file changed

+70
-7
lines changed

fern/apis/api/openapi.json

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6434,6 +6434,7 @@
64346434
"type": "string",
64356435
"description": "This is the OpenAI model that will be used.",
64366436
"enum": [
6437+
"chatgpt-4o-latest",
64376438
"o3-mini",
64386439
"o1-preview",
64396440
"o1-preview-2024-09-12",
@@ -6466,6 +6467,7 @@
64666467
"type": "array",
64676468
"description": "These are the fallback models that will be used if the primary model fails. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest fallbacks that make sense.",
64686469
"enum": [
6470+
"chatgpt-4o-latest",
64696471
"o3-mini",
64706472
"o1-preview",
64716473
"o1-preview-2024-09-12",
@@ -6500,6 +6502,7 @@
65006502
"items": {
65016503
"type": "string",
65026504
"enum": [
6505+
"chatgpt-4o-latest",
65036506
"o3-mini",
65046507
"o1-preview",
65056508
"o1-preview-2024-09-12",
@@ -7618,6 +7621,50 @@
76187621
"voiceId"
76197622
]
76207623
},
7624+
"CartesiaExperimentalControls": {
7625+
"type": "object",
7626+
"properties": {
7627+
"speed": {
7628+
"type": "string",
7629+
"enum": [
7630+
"slowest",
7631+
"slow",
7632+
"normal",
7633+
"fast",
7634+
"fastest"
7635+
],
7636+
"example": "normal"
7637+
},
7638+
"emotion": {
7639+
"type": "string",
7640+
"enum": [
7641+
"anger:lowest",
7642+
"anger:low",
7643+
"anger:high",
7644+
"anger:highest",
7645+
"positivity:lowest",
7646+
"positivity:low",
7647+
"positivity:high",
7648+
"positivity:highest",
7649+
"surprise:lowest",
7650+
"surprise:low",
7651+
"surprise:high",
7652+
"surprise:highest",
7653+
"sadness:lowest",
7654+
"sadness:low",
7655+
"sadness:high",
7656+
"sadness:highest",
7657+
"curiosity:lowest",
7658+
"curiosity:low",
7659+
"curiosity:high",
7660+
"curiosity:highest"
7661+
],
7662+
"example": [
7663+
"happiness:high"
7664+
]
7665+
}
7666+
}
7667+
},
76217668
"CartesiaVoice": {
76227669
"type": "object",
76237670
"properties": {
@@ -7628,6 +7675,10 @@
76287675
"cartesia"
76297676
]
76307677
},
7678+
"voiceId": {
7679+
"type": "string",
7680+
"description": "The ID of the particular voice you want to use."
7681+
},
76317682
"model": {
76327683
"type": "string",
76337684
"description": "This is the model that will be used. This is optional and will default to the correct model for the voiceId.",
@@ -7661,6 +7712,14 @@
76617712
],
76627713
"example": "en"
76637714
},
7715+
"experimentalControls": {
7716+
"description": "Experimental controls for Cartesia voice generation",
7717+
"allOf": [
7718+
{
7719+
"$ref": "#/components/schemas/CartesiaExperimentalControls"
7720+
}
7721+
]
7722+
},
76647723
"chunkPlan": {
76657724
"description": "This is the plan for chunking the model output before it is sent to the voice provider.",
76667725
"allOf": [
@@ -7669,10 +7728,6 @@
76697728
}
76707729
]
76717730
},
7672-
"voiceId": {
7673-
"type": "string",
7674-
"description": "This is the provider-specific ID that will be used."
7675-
},
76767731
"fallbackPlan": {
76777732
"description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
76787733
"allOf": [
@@ -8657,6 +8712,10 @@
86578712
"cartesia"
86588713
]
86598714
},
8715+
"voiceId": {
8716+
"type": "string",
8717+
"description": "The ID of the particular voice you want to use."
8718+
},
86608719
"model": {
86618720
"type": "string",
86628721
"description": "This is the model that will be used. This is optional and will default to the correct model for the voiceId.",
@@ -8690,9 +8749,13 @@
86908749
],
86918750
"example": "en"
86928751
},
8693-
"voiceId": {
8694-
"type": "string",
8695-
"description": "This is the provider-specific ID that will be used."
8752+
"experimentalControls": {
8753+
"description": "Experimental controls for Cartesia voice generation",
8754+
"allOf": [
8755+
{
8756+
"$ref": "#/components/schemas/CartesiaExperimentalControls"
8757+
}
8758+
]
86968759
},
86978760
"chunkPlan": {
86988761
"description": "This is the plan for chunking the model output before it is sent to the voice provider.",

0 commit comments

Comments
 (0)