diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-06 12:48:40 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-07-07 13:39:10 +0200 |
commit | d6d4e0ffe367a89dda1105fed3df15bc66bff11a (patch) | |
tree | eb1bee78bf0fc040ec2a478fa9d39c380f459a67 /core/Controller | |
parent | f7e1e79880261e62daad800c42c0b65ca593a223 (diff) | |
download | nextcloud-server-d6d4e0ffe367a89dda1105fed3df15bc66bff11a.tar.gz nextcloud-server-d6d4e0ffe367a89dda1105fed3df15bc66bff11a.zip |
LLM OCP API: Fix psam errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/LanguageModelApiController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/LanguageModelApiController.php b/core/Controller/LanguageModelApiController.php index 21954e7f1c7..9763e5878a8 100644 --- a/core/Controller/LanguageModelApiController.php +++ b/core/Controller/LanguageModelApiController.php @@ -61,9 +61,9 @@ class LanguageModelApiController extends \OCP\AppFramework\OCSController { * @UserRateThrottle(limit=20, period=120) * @AnonRateThrottle(limit=5, period=120) */ - public function schedule(string $text, string $type, ?string $appId): DataResponse { + public function schedule(string $text, string $type, ?string $appId, string $identifier = ''): DataResponse { try { - $task = AbstractLanguageModelTask::factory($type, $text, $this->userId, $appId); + $task = AbstractLanguageModelTask::factory($type, $text, $this->userId, $appId, $identifier); } catch (InvalidArgumentException $e) { return new DataResponse(['message' => $this->l->t('Requested task type does not exist')], Http::STATUS_BAD_REQUEST); } |