mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-04 05:51:32 +00:00
Start work on more clean client.
This commit is contained in:
@ -23,9 +23,7 @@ class ModelServiceProvider: SdModelServiceAsyncProvider {
|
||||
}
|
||||
|
||||
func loadModel(request: SdLoadModelRequest, context _: GRPCAsyncServerCallContext) async throws -> SdLoadModelResponse {
|
||||
guard let state = await modelManager.getModelState(name: request.modelName) else {
|
||||
throw SdCoreError.modelNotFound
|
||||
}
|
||||
let state = try await modelManager.createModelState(name: request.modelName)
|
||||
try await state.load()
|
||||
return SdLoadModelResponse()
|
||||
}
|
||||
|
Reference in New Issue
Block a user