model volume rename, env for flyio, public and private volumes tested tgt, everything is a public model (#3)
This commit is contained in:
@@ -90,7 +90,7 @@ export const columns: ColumnDef<ModelItemList>[] = [
|
||||
</span>
|
||||
|
||||
{model.is_public
|
||||
? <Badge variant="green">Public</Badge>
|
||||
? <></>
|
||||
: <Badge variant="orange">Private</Badge>}
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -414,7 +414,7 @@ export const modelTable = dbSchema.table("models", {
|
||||
s3_url: text("s3_url"),
|
||||
user_url: text("client_url"),
|
||||
|
||||
is_public: boolean("is_public").notNull().default(false),
|
||||
is_public: boolean("is_public").notNull().default(true),
|
||||
status: resourceUpload("status").notNull().default("started"),
|
||||
upload_machine_id: text("upload_machine_id"), // TODO: review if actually needed
|
||||
upload_type: modelUploadType("upload_type").notNull(),
|
||||
|
||||
@@ -90,11 +90,10 @@ export async function addModelVolume() {
|
||||
.values({
|
||||
user_id: userId,
|
||||
org_id: orgId,
|
||||
volume_name: `checkpoints_${userId}`,
|
||||
// created_at and updated_at will be set to current timestamp by default
|
||||
disabled: false, // Default value
|
||||
volume_name: `models_${orgId ? orgId: userId}`, // if orgid is avalible use as part of the volume name
|
||||
disabled: false,
|
||||
})
|
||||
.returning(); // Returns the inserted row
|
||||
.returning();
|
||||
return insertedVolume;
|
||||
}
|
||||
|
||||
@@ -121,7 +120,6 @@ export const addCivitaiModel = withServerPromise(
|
||||
const civitaiModelRes = await fetch(url)
|
||||
.then((x) => x.json())
|
||||
.then((a) => {
|
||||
console.log(a);
|
||||
return CivitaiModelResponse.parse(a);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user