chore: move model reload to debug tab
This commit is contained in:
@@ -1517,19 +1517,10 @@ struct ConfigSettings: View {
|
|||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack(spacing: 10) {
|
if let modelError {
|
||||||
Button {
|
Text(modelError)
|
||||||
Task { await self.loadModels() }
|
.font(.footnote)
|
||||||
} label: {
|
.foregroundStyle(.secondary)
|
||||||
Label(self.modelsLoading ? "Loading…" : "Reload models", systemImage: "arrow.clockwise")
|
|
||||||
}
|
|
||||||
.disabled(self.modelsLoading)
|
|
||||||
|
|
||||||
if let modelError {
|
|
||||||
Text(modelError)
|
|
||||||
.font(.footnote)
|
|
||||||
.foregroundStyle(.secondary)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user