Research international AI news for article posts
This commit is contained in:
@@ -8,6 +8,7 @@ export const POST_JOB_STATUS = {
|
||||
|
||||
export const POST_JOB_STAGE: Record<string, string> = {
|
||||
queued: "รอเริ่มสร้างโพสต์",
|
||||
research: "กำลังค้นและอ่านข่าว AI จากต่างประเทศ",
|
||||
content: "Codex กำลังเขียนเนื้อหาและพรอมต์ภาพ",
|
||||
image: "ChatGPT กำลังสร้างภาพ",
|
||||
saving: "กำลังบันทึกฉบับร่าง",
|
||||
@@ -29,5 +30,5 @@ export interface PostJobView {
|
||||
export function postJobProgress(job: Pick<PostJobView, "status" | "stage">): number {
|
||||
if (job.status === "COMPLETED") return 100;
|
||||
if (job.status === "QUEUED" || job.status === "CANCELLED") return 0;
|
||||
return ({ content: 10, image: 50, saving: 90 } as Record<string, number>)[job.stage] ?? 0;
|
||||
return ({ research: 10, content: 25, image: 55, saving: 90 } as Record<string, number>)[job.stage] ?? 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user