fix sd API

This commit is contained in:
Brandon Thomas committed 2024-02-02 21:27:21 -05:00
1 parent e245ef0cde
commit e47681fc0e
3 files changed
+6 -6

No files matched your search

@@ -5,9 +5,9 @@ export interface UploadModelRequest {
type_of_inference: String, // upload_lora / check_point / inference
maybe_upload_path?: String,
maybe_lora_upload_path?: String,
title: String,
maybe_name: String,
maybe_description: String,
visibility: String,
description: String
}
export interface UploadModelResponse {
@@ -30,11 +30,11 @@ export default function useLoraUpload() {
...(coverImg.token
? { cover_image_media_file_token: coverImg.token }
: {}),
description: descriptionMD,
maybe_name: title,
maybe_description: descriptionMD,
uuid_idempotency_token: uuidv4(),
type_of_inference: "inference",
maybe_upload_path: uploadPath,
title,
visibility,
})
.then((res: any) => {
@@ -30,11 +30,11 @@ export default function useSdUpload() {
...(coverImg.token
? { cover_image_media_file_token: coverImg.token }
: {}),
description: descriptionMD,
maybe_description: descriptionMD,
uuid_idempotency_token: uuidv4(),
type_of_inference: "inference",
maybe_upload_path: uploadPath,
title,
maybe_name: title,
visibility,
})
.then((res: any) => {