Skip to content

Commit

Permalink
🐛 fix: check problem
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Jul 6, 2024
1 parent cc30215 commit bfcff42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/autoSubmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class AutoSubmit {
systemRole: json.systemRole,
homepage: data.user.html_url,
agentId: kebabCase(json.agentId),
greeting: json.greeting,
meta: {
name: json.name,
avatar: json.avatar,
Expand All @@ -242,6 +243,7 @@ class AutoSubmit {
gender: json.gender,
model: json.modelUrl,
category: json.category,
readme: json.readme,
},
tts: JSON.parse(json.tts),
touch: JSON.parse(json.touch),
Expand Down
2 changes: 2 additions & 0 deletions scripts/check.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { consola } from "consola";
import dayjs from "dayjs";

import { meta } from "./const";
import { VidolAgentSchema } from "./schema/agent";
import { VidolDanceSchema } from "./schema/dance";

export const formatAgentSchema = (agent) => {
if (!agent.schemaVersion) agent.schemaVersion = meta.schemaVersion;
if (!agent.createAt) agent.createAt = dayjs().format('YYYY-MM-DD');

const result = VidolAgentSchema.safeParse(agent);

Expand Down
2 changes: 0 additions & 2 deletions scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export const checkHeader = (line: string) => {
'### tts',
'### touch',
'### params',


];
let check = false;
header.forEach((item) => {
Expand Down

0 comments on commit bfcff42

Please sign in to comment.