Skip to content

Commit 8923df3

Browse files
committed
refactor: change run strategy of ai classify
1 parent 57b7976 commit 8923df3

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

apps/daily-ai-trigger/src/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function handleTriggerAITask(env: Env) {
3131
payloadContentField,
3232
suggestionCategory,
3333
languageStrategy: 'user',
34-
runStrategy: 'skipExist',
34+
runStrategy: 'skipInSuggest',
3535
},
3636
}),
3737
await openApiClient.AiService.aiTranslateSurvey({
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// Generated by Wrangler
2-
// After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
1+
// Generated by Wrangler by running `wrangler types`
2+
33
interface Env {
44
BASE_URL: string;
55
API_KEY: string;
66
WORKSPACE_ID: string;
77
SURVEY_ID: string;
88
PAYLOAD_CONTENT_FIELD: string;
99
LANGUAGE: string;
10-
FOCUS_CATEGORY?: string;
11-
FEISHU_WEBHOOK?: string;
12-
FEISHU_APP_ID?: string;
13-
FEISHU_APP_SECRET?: string;
14-
FEISHU_TABLE_APPTOKEN?: string;
15-
FEISHU_TABLE_ID?: string;
10+
FOCUS_CATEGORY: string;
11+
FEISHU_WEBHOOK: string;
12+
FEISHU_APP_ID: string;
13+
FEISHU_APP_SECRET: string;
14+
FEISHU_TABLE_APPTOKEN: string;
15+
FEISHU_TABLE_ID: string;
1616
}

0 commit comments

Comments
 (0)