]> source.dussan.org Git - nextcloud-server.git/commitdiff
cs:fix
authorMarcel Klehr <mklehr@gmx.net>
Fri, 7 Jul 2023 11:34:16 +0000 (13:34 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:02:22 +0000 (10:02 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit a4578cd99519a63f1b0b5292ec369c0f2dada91f)

core/Controller/LanguageModelApiController.php
lib/private/LanguageModel/LanguageModelManager.php
lib/private/LanguageModel/TaskBackgroundJob.php

index d82d8d0c8b3a3c1026fa5d5e007da74476bad4d6..5bb7b31c3c79fb0ba2a9de0d74e9d444ddbbfb0b 100644 (file)
@@ -34,9 +34,7 @@ use OCP\IL10N;
 use OCP\IRequest;
 use OCP\LanguageModel\AbstractLanguageModelTask;
 use OCP\LanguageModel\ILanguageModelManager;
-use OCP\LanguageModel\ILanguageModelTask;
 use OCP\PreConditionNotMetException;
-use Punic\Data;
 
 class LanguageModelApiController extends \OCP\AppFramework\OCSController {
        public function __construct(
index c956dfc64abafd3cb49f3e06c62adb0bf0f7a9dd..970d968c8839f17f0dc0af26f745aa62b38e1c2a 100644 (file)
@@ -34,7 +34,6 @@ use OCP\BackgroundJob\IJobList;
 use OCP\Common\Exception\NotFoundException;
 use OCP\DB\Exception;
 use OCP\IServerContainer;
-use OCP\LanguageModel\AbstractLanguageModelTask;
 use OCP\LanguageModel\FreePromptTask;
 use OCP\LanguageModel\HeadlineTask;
 use OCP\LanguageModel\IHeadlineProvider;
@@ -46,8 +45,6 @@ use OCP\LanguageModel\ITopicsProvider;
 use OCP\LanguageModel\SummaryTask;
 use OCP\LanguageModel\TopicsTask;
 use OCP\PreConditionNotMetException;
-use Psr\Container\ContainerExceptionInterface;
-use Psr\Container\NotFoundExceptionInterface;
 use Psr\Log\LoggerInterface;
 use RuntimeException;
 use Throwable;
index 9198f400325509aa8ad941b42ad8c098ff574f8d..5ac37baf3326ec788b7a061c389e42d3220cbadb 100644 (file)
@@ -32,7 +32,6 @@ use OCP\EventDispatcher\IEventDispatcher;
 use OCP\LanguageModel\Events\TaskFailedEvent;
 use OCP\LanguageModel\Events\TaskSuccessfulEvent;
 use OCP\LanguageModel\ILanguageModelManager;
-use OCP\PreConditionNotMetException;
 
 class TaskBackgroundJob extends QueuedJob {
        public function __construct(