Support configuring effort alongside model
This commit is contained in:
@@ -334,7 +334,7 @@ final class SwitcherModel {
|
||||
Task {
|
||||
do {
|
||||
let ids = try await uploadImages(store.api, imgs)
|
||||
let task = try await store.api.client.createTask(path: .init(projectId: projectId), body: .json(.init(prompt: message.isEmpty ? nil : message, images: ids, model: store.defaultModel))).created.body.json
|
||||
let task = try await store.api.client.createTask(path: .init(projectId: projectId), body: .json(.init(prompt: message.isEmpty ? nil : message, images: ids, model: store.defaultModel, effort: store.defaultEffort))).created.body.json
|
||||
store.composerFocus = task.id
|
||||
store.focusTask(task.id)
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user