Skip to content

Commit 4f88875

Browse files
committed
fix: comment out unused cron schedules in workflow and remove deprecated model references in post generation
1 parent fad2179 commit 4f88875

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

.github/workflows/ai-blogger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
schedule:
55
# - cron: "*/10 * * * *" # every 10 minutes
66
# - cron: "0 1 * * *" # 1 AM UTC daily
7-
- cron: "0 22 * * *" # 6 AM UTC daily
8-
- cron: "0 10 * * *" # 6 PM UTC daily
7+
# - cron: "0 22 * * *" # 6 AM UTC daily
8+
# - cron: "0 10 * * *" # 6 PM UTC daily
99
workflow_dispatch: # lets you run manually from GitHub Actions tab
1010

1111
jobs:

generators/general-post.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ ${techContext}
8787
`;
8888
const techContextSummaryRespone = await genAI.models.generateContent({
8989
model: "gemini-2.5-flash",
90-
// model: "gemini-2.0-flash",
9190
config: {
9291
thinkingConfig: { thinkingBudget: 0 },
9392
systemInstruction: techContextSummarizeSystemPrompt,
@@ -224,7 +223,6 @@ ${categoryCountsText}
224223
// Generate topic selection using AI
225224
const topicSelectionResponse = await genAI.models.generateContent({
226225
model: "gemini-2.5-flash",
227-
// model: "gemini-2.0-flash",
228226
config: {
229227
thinkingConfig: { thinkingBudget: 0 },
230228
systemInstruction: topicSelectionSystemPrompt,
@@ -367,7 +365,6 @@ Important: Output *only* the raw Markdown content for the outline, starting dire
367365

368366
const outlineResponse = await genAI.models.generateContent({
369367
model: "gemini-2.5-flash",
370-
// model: "gemini-2.0-flash",
371368
config: {
372369
thinkingConfig: { thinkingBudget: 0 },
373370
systemInstruction: outlineSystemPrompt,
@@ -648,19 +645,10 @@ ${researchFindingsString}
648645

649646
try {
650647
// --- 3. Call Gemini API ---
651-
// const countTokensResponse = await genAI.models.countTokens({
652-
// model: "gemini-2.5-pro-exp-03-25",
653-
// // model: "gemini-2.5-flash-preview-04-17",
654-
// contents: generationPrompt,
655-
// });
656-
// console.log("Tokens:", countTokensResponse);
657-
658648
const draftResponse = await genAI.models.generateContent({
659-
// model: "gemini-2.5-pro-exp-03-25",
660649
model: "gemini-2.5-flash",
661650
contents: generationPrompt,
662651
config: {
663-
// thinkingConfig: { thinkingBudget: 0 },
664652
systemInstruction: generationSystemPrompt,
665653
temperature: 0.6,
666654
},

0 commit comments

Comments
 (0)