Skip to content

Commit f05575b

Browse files
committed
Sort assistant types again (fix regression)
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
1 parent ffae683 commit f05575b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/NextcloudKit/NextcloudKit+AssistantV2.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public extension NextcloudKit {
5555
}
5656
types = types
5757
.filter { $0.isSingleTextInputOutput(supportedTaskType: supportedTaskType) || $0.isChat() || $0.isTranslate() }
58+
.sorted { ($0.id ?? "") < ($1.id ?? "") }
5859
options.queue.async {
5960
continuation.resume(returning: (account: account, types: types, responseData: response, error: .success))
6061
}

0 commit comments

Comments
 (0)