summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-07 12:11:46 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-08-09 10:02:17 +0200
commit39d59a10b1f658a8739ef71e2c3032499dca8cc9 (patch)
treeb12c263299461fca9108e4816902b0f9de01d4d4 /core
parent17351b64ecd13cae785af1814b0b1228e5439a45 (diff)
downloadnextcloud-server-39d59a10b1f658a8739ef71e2c3032499dca8cc9.tar.gz
nextcloud-server-39d59a10b1f658a8739ef71e2c3032499dca8cc9.zip
LLM OCP API: Fix OpenApi docs
Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit ea4dc4cba8c433f7cf3436794706c0d5b1c57bd9)
Diffstat (limited to 'core')
-rw-r--r--core/Controller/LanguageModelApiController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/LanguageModelApiController.php b/core/Controller/LanguageModelApiController.php
index a01fe268ab2..d82d8d0c8b3 100644
--- a/core/Controller/LanguageModelApiController.php
+++ b/core/Controller/LanguageModelApiController.php
@@ -53,7 +53,7 @@ class LanguageModelApiController extends \OCP\AppFramework\OCSController {
* 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
*/
@@ -73,7 +73,7 @@ class LanguageModelApiController extends \OCP\AppFramework\OCSController {
* @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
@@ -102,7 +102,7 @@ class LanguageModelApiController extends \OCP\AppFramework\OCSController {
*
* @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