Skip to content

Commit

Permalink
Merge pull request #60 from SpenserCai/dev
Browse files Browse the repository at this point in the history
support lora info
  • Loading branch information
SpenserCai committed Sep 8, 2023
2 parents 9c7ede7 + c16d240 commit c3fd065
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions intersvc/sdapi_v1_loras_model.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
/*
* @Author: SpenserCai
* @Date: 2023-08-14 17:36:46
* @version:
* @LastEditors: SpenserCai
* @LastEditTime: 2023-09-08 15:14:59
* @Description: file content
*/
package intersvc

import (
// SdApiModel "github.com/SpenserCai/sd-webui-go/stablediffusion/models"
)
// SdApiModel "github.com/SpenserCai/sd-webui-go/stablediffusion/models"

type SdapiV1LorasResponse struct {
type LoraItemMetadata struct {
SsSdModelName string `json:"ss_sd_model_name"`
SsBaseModelVersion string `json:"ss_base_model_version"`
}

type LoraItem struct {
Name string `json:"name"`
Alias string `json:"alias"`
Path string `json:"path"`
Metadata LoraItemMetadata `json:"metadata"`
}

type SdapiV1LorasResponse = []LoraItem

0 comments on commit c3fd065

Please sign in to comment.