Run model downloads and split conversations independently

This commit is contained in:
Mark Gregory
2026-11-17 11:48:11 +00:00
parent 0b8a07b10f
commit 1f373d0ece
6 changed files with 267 additions and 55 deletions
+6 -1
View File
@@ -348,6 +348,11 @@ final class StudioModel: ObservableObject {
func removeToolAttachment() { toolAttachment = nil }
func copyInferenceCredentials(from source: StudioModel) {
setOllamaToken(source.ollamaToken, endpoint: source.tokenEndpoint)
setCompatibleToken(source.compatibleToken, endpoint: source.compatibleTokenEndpoint)
}
func setOllamaToken(_ token: String, endpoint: String) {
tokenEndpoint = endpoint
ollamaToken = token
@@ -362,7 +367,7 @@ final class StudioModel: ObservableObject {
try CompatibleEndpoint(endpoint: endpoint, token: endpoint == compatibleTokenEndpoint ? compatibleToken : "")
}
private func ollamaClient(endpoint: String) throws -> Ollama {
func ollamaClient(endpoint: String) throws -> Ollama {
try Ollama(endpoint: endpoint, token: endpoint == tokenEndpoint ? ollamaToken : "")
}