Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Controller/AssistantApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public function shareOutputFile(int $ocpTaskId, int $fileId): DataResponse {
*
* @param int $ocpTaskId The task ID
* @param int $fileId The file ID
* @return DataResponse<Http::STATUS_OK, array{shareToken: string}, array{}>|DataResponse<Http::STATUS_NOT_FOUND, array{error: string}, array{}>
* @return DataResponse<Http::STATUS_OK, array{fileId: int, path: string, mime: string}, array{}>|DataResponse<Http::STATUS_NOT_FOUND, array{error: string}, array{}>
*
* 200: The file was saved
* 404: The file was not found
Expand Down
1 change: 1 addition & 0 deletions lib/ResponseDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
* attachments: list<array{type: string, fileId: int}>,
* ocp_task_id: int,
* sources: string,
* reasoning: ?string,
* }
*
* @psalm-type AssistantChatAgencyMessage = AssistantChatMessage&array{
Expand Down
1 change: 1 addition & 0 deletions lib/Service/AssistantService.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ public function saveOutputFile(string $userId, int $ocpTaskId, int $fileId): arr
return [
'fileId' => $fileCopy->getId(),
'path' => preg_replace('/^files\//', '/', $fileCopy->getInternalPath()),
'mime' => $fileCopy->getMimeType(),
];
}

Expand Down
20 changes: 17 additions & 3 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
"timestamp",
"attachments",
"ocp_task_id",
"sources"
"sources",
"reasoning"
],
"properties": {
"id": {
Expand Down Expand Up @@ -145,6 +146,10 @@
},
"sources": {
"type": "string"
},
"reasoning": {
"type": "string",
"nullable": true
}
}
},
Expand Down Expand Up @@ -2189,10 +2194,19 @@
"data": {
"type": "object",
"required": [
"shareToken"
"fileId",
"path",
"mime"
],
"properties": {
"shareToken": {
"fileId": {
"type": "integer",
"format": "int64"
},
"path": {
"type": "string"
},
"mime": {
"type": "string"
}
}
Expand Down
Loading
Loading