mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-05 22:41:30 +00:00
Split out worker related things to a separate service definition.
This commit is contained in:
@ -11,7 +11,7 @@ Task { @MainActor in
|
||||
let modelListResponse = try await client.modelService.listModels(.init())
|
||||
print("Loading random model...")
|
||||
let modelInfo = modelListResponse.availableModels.randomElement()!
|
||||
_ = try await client.modelService.loadModel(.with { request in
|
||||
_ = try await client.hostModelService.loadModel(.with { request in
|
||||
request.modelName = modelInfo.name
|
||||
})
|
||||
print("Loaded random model.")
|
||||
|
Reference in New Issue
Block a user