Skip to content

Commit

Permalink
LLM OCP API: Fix OpenApi docs
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jul 7, 2023
1 parent de1cfaa commit ea4dc4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/Controller/LanguageModelApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(
* This endpoint returns all available LanguageModel task types
*
* @PublicPage
* @return DataResponse<Http::STATUS_OK,array{types: string[]}, array{}>
* @return DataResponse<Http::STATUS_OK, array{types: string[]}, array{}>
*
* 200: Task types returned
*/
Expand All @@ -73,7 +73,7 @@ public function taskTypes(): DataResponse {
* @param string $type The task type
* @param string $appId The originating app ID
* @param string $identifier An identifier to identify this task
* @return DataResponse<Http::STATUS_OK,array{task: array{id: int,type:string,status: ILanguageModelTask::STATUS_*,userId: string, appId: string,input: string,output: string, identifier: string}},array{}>|DataResponse<Http::STATUS_PRECONDITION_FAILED|Http::STATUS_BAD_REQUEST,array{message: string}, array{}>
* @return DataResponse<Http::STATUS_OK,array{task: array{id: int, type: string, status: int, userId: string, appId: string, input: string, output: string, identifier: string}},array{}> | DataResponse<Http::STATUS_PRECONDITION_FAILED | Http::STATUS_BAD_REQUEST, array{message: string}, array{}>
*
* 200: Task scheduled
* 400: Task type does not exist
Expand Down Expand Up @@ -102,7 +102,7 @@ public function schedule(string $input, string $type, string $appId, string $ide
*
* @PublicPage
* @param int $id The id of the task
* @return DataResponse<Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, array{message:string}>|DataResponse<Http::STATUS_OK,array{task: array{id: int,type:string,status: ILanguageModelTask::STATUS_*,userId: string, appId: string,input: string,output: string, identifier: string}},array{}>
* @return DataResponse<Http::STATUS_NOT_FOUND | Http::STATUS_INTERNAL_SERVER_ERROR, array{message:string}> | DataResponse<Http::STATUS_OK, array{task: array{id: int, type: string, status: int, userId: string, appId: string, input: string, output: string, identifier: string}}, array{}>
*
* 200: Task returned
* 404: Task not found
Expand Down

0 comments on commit ea4dc4c

Please sign in to comment.