LLM OCP API: Fix psam error

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 0a0e812453)
This commit is contained in:
Marcel Klehr 2023-07-06 15:24:54 +02:00
parent 7320011948
commit d9f2aaf869

View file

@ -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;
}
}