mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
LLM OCP API: Fix psam error
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 0a0e812453)
This commit is contained in:
parent
7320011948
commit
d9f2aaf869
1 changed files with 3 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ class Task extends Entity {
|
|||
}
|
||||
|
||||
public static function fromLanguageModelTask(ILanguageModelTask $task): Task {
|
||||
return Task::fromParams([
|
||||
/** @var Task $task */
|
||||
$task = Task::fromParams([
|
||||
'id' => $task->getId(),
|
||||
'type' => $task->getType(),
|
||||
'lastUpdated' => time(),
|
||||
|
|
@ -75,5 +76,6 @@ class Task extends Entity {
|
|||
'appId' => $task->getAppId(),
|
||||
'identifier' => $task->getIdentifier(),
|
||||
]);
|
||||
return $task;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue