Skip to content

Commit

Permalink
update openapi specs
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed May 6, 2024
1 parent 658abce commit 9c206f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/SpeechToTextApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getTranscript(int $id): DataResponse {
* 400: Starting task is not possible
*/
#[NoAdminRequired]
public function transcribeAudio(string $appId = Application::APP_ID, string $identifier = ''): DataResponse {
public function transcribeAudio(string $appId = 'assistant', string $identifier = ''): DataResponse {
$audioData = $this->request->getUploadedFile('audioData');

if ($audioData['error'] !== 0) {
Expand Down Expand Up @@ -157,7 +157,7 @@ public function transcribeAudio(string $appId = Application::APP_ID, string $ide
* 404: File not found
*/
#[NoAdminRequired]
public function transcribeFile(string $path, string $appId = Application::APP_ID, string $identifier = ''): DataResponse {
public function transcribeFile(string $path, string $appId = 'assistant', string $identifier = ''): DataResponse {
if ($path === '') {
return new DataResponse('Empty file path received', Http::STATUS_BAD_REQUEST);
}
Expand Down
16 changes: 8 additions & 8 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2357,18 +2357,18 @@
"name": "appId",
"in": "query",
"description": "App id to be set in the created task",
"required": true,
"schema": {
"type": "string"
"type": "string",
"default": "assistant"
}
},
{
"name": "identifier",
"in": "query",
"description": "Identifier to be set in the created task",
"required": true,
"schema": {
"type": "string"
"type": "string",
"default": ""
}
},
{
Expand Down Expand Up @@ -2531,18 +2531,18 @@
"name": "appId",
"in": "query",
"description": "App id to be set in the created task",
"required": true,
"schema": {
"type": "string"
"type": "string",
"default": "assistant"
}
},
{
"name": "identifier",
"in": "query",
"description": "Identifier to be set in the created task",
"required": true,
"schema": {
"type": "string"
"type": "string",
"default": ""
}
},
{
Expand Down

0 comments on commit 9c206f4

Please sign in to comment.