mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 02:21:23 +00:00
22 lines
630 B
TypeScript
22 lines
630 B
TypeScript
import MakeRequest from "../MakeRequest";
|
|
|
|
export interface UploadModelRequest {
|
|
uuid_idempotency_token: String,
|
|
type_of_inference: String, // upload_lora / check_point / inference
|
|
maybe_upload_path?: String,
|
|
maybe_lora_upload_path?: String,
|
|
maybe_name: String,
|
|
maybe_description: String,
|
|
visibility: String,
|
|
}
|
|
|
|
export interface UploadModelResponse {
|
|
success: boolean,
|
|
maybe_sd_model_token?: String,
|
|
maybe_lora_model_token?: String,
|
|
}
|
|
|
|
export const UploadModel = MakeRequest<string, UploadModelRequest, UploadModelResponse,{}>({
|
|
method: "POST",
|
|
routingFunction: () => "/v1/image_gen/upload/model",
|
|
}); |