Skip to content

Commit c3fd065

Browse files
authored
Merge pull request #60 from SpenserCai/dev
support lora info
2 parents 9c7ede7 + c16d240 commit c3fd065

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

intersvc/sdapi_v1_loras_model.go

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1+
/*
2+
* @Author: SpenserCai
3+
* @Date: 2023-08-14 17:36:46
4+
* @version:
5+
* @LastEditors: SpenserCai
6+
* @LastEditTime: 2023-09-08 15:14:59
7+
* @Description: file content
8+
*/
19
package intersvc
210

3-
import (
4-
// SdApiModel "github.com/SpenserCai/sd-webui-go/stablediffusion/models"
5-
)
11+
// SdApiModel "github.com/SpenserCai/sd-webui-go/stablediffusion/models"
612

7-
type SdapiV1LorasResponse struct {
13+
type LoraItemMetadata struct {
14+
SsSdModelName string `json:"ss_sd_model_name"`
15+
SsBaseModelVersion string `json:"ss_base_model_version"`
16+
}
817

18+
type LoraItem struct {
19+
Name string `json:"name"`
20+
Alias string `json:"alias"`
21+
Path string `json:"path"`
22+
Metadata LoraItemMetadata `json:"metadata"`
923
}
24+
25+
type SdapiV1LorasResponse = []LoraItem

0 commit comments

Comments
 (0)