Skip to content

🎬 Open-source, self-hosted AI agent that runs a YouTube channel end to end: researches topics, writes scripts, generates narration, visuals and video, optimizes SEO, and publishes after your approval, then learns from analytics. Works with Gemini, OpenAI, OpenRouter, DeepSeek and more.

Refresh current AI model catalog

darkzOGx97c1b88dd38b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd34753..8141568 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,7 @@
- Added an explicit opt-in anonymous milestone reporter with no default endpoint
- Added reproducible GitHub growth baselines and public fork census reports
- Reworked the README around product outcomes and moved release history here
-- Synchronized the in-repo provider catalog with current official model IDs and corrected Gemini free-tier claims
+- Refreshed active provider defaults and selectors for Gemini 3.7 Flash, Claude Fable 5, and the current OpenRouter catalog
## v2.5
diff --git a/README.md b/README.md
index 60b0412..4dc85ef 100644
--- a/README.md
+++ b/README.md
@@ -89,13 +89,13 @@ All OpenAI-compatible providers work out of the box β€” the system auto-configur
graph LR
subgraph Direct
OA[OpenAI<br/>GPT-5.6 family]
- GM[Gemini<br/>3.5 Flash / 3.1 Pro]
+ GM[Gemini<br/>3.7 Flash / 3.1 Pro]
KM[Kimi<br/>K3]
MM[MiMo<br/>V2.5 Pro]
GL[GLM<br/>GLM-5.3]
end
subgraph Router
- OR[OpenRouter<br/>300+ models]
+ OR[OpenRouter<br/>400+ models]
end
Direct --> YAA[YouTube Automation Agent]
Router --> YAA
@@ -104,13 +104,13 @@ graph LR
| Provider | Models | Base URL | Cost |
|----------|--------|----------|------|
| **OpenAI** | GPT-5.6 Sol, Terra, Luna | `api.openai.com/v1` | provider pricing |
-| **OpenRouter** | 300+ models; curated defaults are validated against its live catalog | `openrouter.ai/api/v1` | varies by model |
-| **Google Gemini** | Gemini 3.5 Flash, 3.1 Pro Preview, 2.5 Pro | via `@google/genai` SDK | free tiers vary by model and modality |
+| **OpenRouter** | 400+ models; curated defaults are validated against its live catalog | `openrouter.ai/api/v1` | varies by model |
+| **Google Gemini** | Gemini 3.7 Flash, 3.1 Pro Preview, 3.5 Flash-Lite | via `@google/genai` SDK | free tiers vary by model and modality |
| **Kimi (Moonshot AI)** | Kimi K3, K2.7 Code, K2.6 | `api.moonshot.ai/v1` | provider pricing |
| **MiMo (Xiaomi)** | MiMo V2.5 Pro, V2.5 | `api.xiaomimimo.com/v1` | provider pricing |
| **GLM (Zhipu AI)** | GLM-5.3, 5.2, 5.1 | `api.z.ai/api/paas/v4/` | provider pricing |
-Additional integrations: Anthropic Claude (`claude-opus-4-8`), ElevenLabs (Eleven v3 TTS), Replicate (Wan 2.7 video), local models via Ollama, any OpenAI-compatible endpoint.
+Additional integrations: Anthropic Claude (`claude-fable-5`), ElevenLabs (Eleven v3 TTS), Replicate (Wan 2.7 video), local models via Ollama, any OpenAI-compatible endpoint.
## Configuration
@@ -279,7 +279,7 @@ class ClaudeAIService {
}
async generateContent(prompt) {
const message = await this.client.messages.create({
- model: 'claude-opus-4-8',
+ model: 'claude-fable-5',
max_tokens: 1024,
messages: [{ role: 'user', content: prompt }]
});
@@ -373,7 +373,7 @@ MIT β€” see [LICENSE](LICENSE).
- [OpenAI](https://openai.com/) β€” GPT-5.6 Sol, GPT Image 2, GPT-4o-mini-tts
- [OpenRouter](https://openrouter.ai/) β€” unified multi-model API
-- [Google](https://ai.google.dev/) β€” Gemini 3.5 Flash, Gemini 3.1 Flash Image, Gemini 3.1 Flash TTS
+- [Google](https://ai.google.dev/) β€” Gemini 3.7 Flash, Gemini 3.1 Flash Image, Gemini 3.1 Flash TTS
- [Google Cloud](https://console.cloud.google.com/) β€” YouTube Data API
- [Moonshot AI](https://www.moonshot.ai/) β€” Kimi K3
- [Xiaomi](https://mimo.mi.com/) β€” MiMo V2.5 Pro
diff --git a/test.js b/test.js
index c283226..dc8991a 100644
--- a/test.js
+++ b/test.js
@@ -536,6 +536,28 @@ class SystemTest {
if (!emptyRejected) {
throw new Error('Empty response was not rejected with a descriptive error');
}
+
+ // Gemini 3.5+ rejects/deprecates sampling parameters. Keep the latest
+ // Gemini default on the parameter-safe request path.
+ const geminiCalls = [];
+ const geminiService = Object.create(AITextService.prototype);
+ geminiService.gemini = {
+ models: {
+ generateContent: async (params) => {
+ geminiCalls.push(params);
+ return { text: 'gemini-ok' };
+ }
+ }
+ };
+ geminiService.client = null;
+ geminiService.model = 'gemini-3.7-flash';
+ geminiService.providerName = 'Google Gemini';
+
+ const geminiResult = await geminiService.generateText('gemini prompt', { temperature: 0.2 });
+ if (geminiResult !== 'gemini-ok') throw new Error('Gemini generation did not return content');
+ if (geminiCalls[0].config.temperature !== undefined) {
+ throw new Error('Gemini 3.7 must not receive the deprecated temperature parameter');
+ }
} finally {
if (savedEnv === undefined) delete process.env.OPENAI_API_KEY;
else process.env.OPENAI_API_KEY = savedEnv;
@@ -710,7 +732,7 @@ class SystemTest {
async testWalkthroughModule() {
const { SetupWalkthrough, AI_PROVIDER_GUIDE } = require('./walkthrough');
- const { PROVIDERS } = require('./utils/ai-text-service');
+ const { PROVIDERS, GEMINI_MODELS, GEMINI_DEFAULT_MODEL } = require('./utils/ai-text-service');
const walkthrough = new SetupWalkthrough();
if (typeof walkthrough.run !== 'function') {
@@ -755,6 +777,30 @@ class SystemTest {
}
}
+ if (
+ JSON.stringify(AI_PROVIDER_GUIDE.gemini.models) !== JSON.stringify(GEMINI_MODELS) ||
+ AI_PROVIDER_GUIDE.gemini.defaultModel !== GEMINI_DEFAULT_MODEL
+ ) {
+ throw new Error('Walkthrough Gemini models drifted from the runtime catalog');
+ }
+
+ for (const id of Object.keys(PROVIDERS)) {
+ if (JSON.stringify(AI_PROVIDER_GUIDE[id].models) !== JSON.stringify(PROVIDERS[id].models)) {
+ throw new Error(`Walkthrough provider "${id}" models drifted from the runtime catalog`);
+ }
+ }
+
+ const currentOpenRouterModels = [
+ 'openai/gpt-5.6-sol',
+ 'anthropic/claude-fable-5',
+ 'google/gemini-3.7-flash',
+ 'moonshotai/kimi-k3',
+ 'z-ai/glm-5.3'
+ ];
+ if (JSON.stringify(PROVIDERS.openrouter.models) !== JSON.stringify(currentOpenRouterModels)) {
+ throw new Error('OpenRouter curated models are not the verified current catalog');
+ }
+
this.logger.info('Walkthrough module test completed successfully');
}
diff --git a/utils/ai-text-service.js b/utils/ai-text-service.js
index 0cb7678..0c2d99d 100644
--- a/utils/ai-text-service.js
+++ b/utils/ai-text-service.js
@@ -1,6 +1,13 @@
const OpenAI = require('openai');
const { Logger } = require('./logger');
+const GEMINI_MODELS = [
+ 'gemini-3.7-flash',
+ 'gemini-3.1-pro-preview',
+ 'gemini-3.5-flash-lite',
+];
+const GEMINI_DEFAULT_MODEL = GEMINI_MODELS[0];
+
const PROVIDERS = {
openai: {
name: 'OpenAI',
@@ -13,7 +20,7 @@ const PROVIDERS = {
name: 'OpenRouter',
baseURL: 'https://openrouter.ai/api/v1',
defaultModel: 'openai/gpt-5.6-sol',
- models: ['openai/gpt-5.6-sol', 'anthropic/claude-opus-4-8', 'google/gemini-3.5-flash', 'moonshotai/kimi-k3', 'z-ai/glm-5.2'],
+ models: ['openai/gpt-5.6-sol', 'anthropic/claude-fable-5', 'google/gemini-3.7-flash', 'moonshotai/kimi-k3', 'z-ai/glm-5.3'],
envKey: 'OPENROUTER_API_KEY',
},
kimi: {
@@ -85,7 +92,7 @@ class AITextService {
try {
const { GoogleGenAI } = require('@google/genai');
this.gemini = new GoogleGenAI({ apiKey });
- this.model = model || 'gemini-3.5-flash';
+ this.model = model || GEMINI_DEFAULT_MODEL;
this.providerName = 'Google Gemini';
this.logger.info(`Gemini initialized (model: ${this.model})`);
} catch (error) {
@@ -100,7 +107,7 @@ class AITextService {
if (this.gemini) {
const config = { maxOutputTokens: maxTokens };
- if (!/^gemini-3\.[56]-/.test(model)) config.temperature = temperature;
+ if (!/^gemini-3\.(?:[5-9]|\d{2,})-/.test(model)) config.temperature = temperature;
const response = await this.gemini.models.generateContent({
model,
contents: prompt,
@@ -175,4 +182,4 @@ class AITextService {
}
}
-module.exports = { AITextService, PROVIDERS };
+module.exports = { AITextService, PROVIDERS, GEMINI_MODELS, GEMINI_DEFAULT_MODEL };
diff --git a/utils/credential-manager.js b/utils/credential-manager.js
index 611bf72..3f2d85f 100644
--- a/utils/credential-manager.js
+++ b/utils/credential-manager.js
@@ -4,6 +4,7 @@ const { google } = require('googleapis');
const inquirer = require('inquirer');
const chalk = require('chalk');
const { Logger } = require('./logger');
+const { PROVIDERS, GEMINI_MODELS, GEMINI_DEFAULT_MODEL } = require('./ai-text-service');
class CredentialManager {
constructor() {
@@ -170,12 +171,8 @@ class CredentialManager {
type: 'list',
name: 'model',
message: 'Select your preferred model:',
- choices: [
- 'gpt-5.6',
- 'gpt-5.6-terra',
- 'gpt-5.6-luna'
- ],
- default: 'gpt-5.6'
+ choices: [...PROVIDERS.openai.models],
+ default: PROVIDERS.openai.defaultModel
}
]);
@@ -204,12 +201,8 @@ class CredentialManager {
type: 'list',
name: 'model',
message: 'Select your preferred Gemini model:',
- choices: [
- 'gemini-3.5-flash',
- 'gemini-3.1-pro-preview',
- 'gemini-2.5-pro'
- ],
- default: 'gemini-3.5-flash'
+ choices: [...GEMINI_MODELS],
+ default: GEMINI_DEFAULT_MODEL
}
]);
@@ -226,7 +219,7 @@ class CredentialManager {
async setupOpenRouterCredentials() {
console.log(chalk.cyan('\nOpenRouter Setup'));
console.log(chalk.gray('Get your API key from: https://openrouter.ai/keys'));
- console.log(chalk.gray('One key gives access to 300+ models (OpenAI, Claude, Gemini, Kimi, GLM, etc.)'));
+ console.log(chalk.gray('One key gives access to 400+ models (OpenAI, Claude, Gemini, Kimi, GLM, etc.)'));
const answers = await inquirer.prompt([
{
@@ -239,14 +232,8 @@ class CredentialManager {
type: 'list',
name: 'model',
message: 'Select default model:',
- choices: [
- 'openai/gpt-5.6-sol',
- 'anthropic/claude-opus-4-8',
- 'google/gemini-3.5-flash',
- 'moonshotai/kimi-k3',
- 'z-ai/glm-5.2'
- ],
- default: 'openai/gpt-5.6-sol'
+ choices: [...PROVIDERS.openrouter.models],
+ default: PROVIDERS.openrouter.defaultModel
}
]);
@@ -276,8 +263,8 @@ class CredentialManager {
type: 'list',
name: 'model',
message: 'Select model:',
- choices: ['kimi-k3', 'kimi-k2.7-code', 'kimi-k2.6'],
- default: 'kimi-k3'
+ choices: [...PROVIDERS.kimi.models],
+ default: PROVIDERS.kimi.defaultModel
}
]);
@@ -307,8 +294,8 @@ class CredentialManager {
type: 'list',
name: 'model',
message: 'Select model:',
- choices: ['mimo-v2.5-pro', 'mimo-v2.5'],
- default: 'mimo-v2.5-pro'
+ choices: [...PROVIDERS.mimo.models],
+ default: PROVIDERS.mimo.defaultModel
}
]);
@@ -338,8 +325,8 @@ class CredentialManager {
type: 'list',
name: 'model',
message: 'Select model:',
- choices: ['glm-5.3', 'glm-5.2', 'glm-5.1'],
- default: 'glm-5.3'
+ choices: [...PROVIDERS.glm.models],
+ default: PROVIDERS.glm.defaultModel
}
]);
@@ -525,7 +512,6 @@ class CredentialManager {
}
// Environment-variable based configuration (see utils/ai-text-service.js)
- const { PROVIDERS } = require('./ai-text-service');
const envKeys = [...Object.values(PROVIDERS).map(p => p.envKey), 'GEMINI_API_KEY'];
return envKeys.some(key => process.env[key]);
}
@@ -643,8 +629,8 @@ class CredentialManager {
message: 'Select your preferred AI service:',
choices: [
{ name: 'OpenAI (GPT-5.6)', value: 'openai' },
- { name: 'Google Gemini (Gemini 3.5 β€” free tier)', value: 'gemini' },
- { name: 'OpenRouter (300+ models, one API key)', value: 'openrouter' },
+ { name: 'Google Gemini (Gemini 3.7)', value: 'gemini' },
+ { name: 'OpenRouter (400+ models, one API key)', value: 'openrouter' },
{ name: 'Kimi (Moonshot AI β€” K3)', value: 'kimi' },
{ name: 'MiMo (Xiaomi β€” V2.5 Pro)', value: 'mimo' },
{ name: 'GLM (Zhipu AI β€” GLM-5.3)', value: 'glm' },
diff --git a/walkthrough.js b/walkthrough.js
index 1deeb19..0b94e6c 100644
--- a/walkthrough.js
+++ b/walkthrough.js
@@ -6,7 +6,12 @@ const fs = require('fs').promises;
const path = require('path');
const { exec } = require('child_process');
const { CredentialManager } = require('./utils/credential-manager');
-const { AITextService, PROVIDERS } = require('./utils/ai-text-service');
+const {
+ AITextService,
+ PROVIDERS,
+ GEMINI_MODELS,
+ GEMINI_DEFAULT_MODEL
+} = require('./utils/ai-text-service');
const { Database } = require('./database/db');
const { checkFFmpeg, ffmpegInstallHint } = require('./utils/ffmpeg');
@@ -21,8 +26,8 @@ const AI_PROVIDER_GUIDE = {
'Click "Create API key"',
'Copy the key it shows you'
],
- models: ['gemini-3.5-flash', 'gemini-3.1-pro-preview', 'gemini-2.5-pro'],
- defaultModel: 'gemini-3.5-flash',
+ models: [...GEMINI_MODELS],
+ defaultModel: GEMINI_DEFAULT_MODEL,
covers: 'scripts + voice narration on supported free tiers; AI images require paid access',
save(credentials, apiKey, model) {
credentials.gemini = { apiKey, model };
@@ -38,8 +43,8 @@ const AI_PROVIDER_GUIDE = {
'Click "Create new secret key"',
'Copy the key β€” it is shown only once'
],
- models: ['gpt-5.6', 'gpt-5.6-terra', 'gpt-5.6-luna'],
- defaultModel: 'gpt-5.6',
+ models: [...PROVIDERS.openai.models],
+ defaultModel: PROVIDERS.openai.defaultModel,
covers: 'scripts + images + voice narration',
save(credentials, apiKey, model) {
credentials.openai = { apiKey, model };
@@ -47,15 +52,15 @@ const AI_PROVIDER_GUIDE = {
validationCreds: (apiKey, model) => ({ aiProvider: { provider: 'openai', apiKey, model } })
},
openrouter: {
- label: 'OpenRouter β€” one key, 300+ models (pay per use)',
+ label: 'OpenRouter β€” one key, 400+ models (pay per use)',
keyUrl: 'https://openrouter.ai/keys',
keyHint: 'starts with "sk-or-"',
instructions: [
'Sign in and add a few dollars of credit',
'Create a key and copy it'
],
- models: ['openai/gpt-5.6-sol', 'anthropic/claude-opus-4-8', 'google/gemini-3.5-flash', 'moonshotai/kimi-k3', 'z-ai/glm-5.2'],
- defaultModel: 'google/gemini-3.5-flash',
+ models: [...PROVIDERS.openrouter.models],
+ defaultModel: 'google/gemini-3.7-flash',
covers: 'scripts only (add a Gemini or OpenAI key for images/voice)',
save(credentials, apiKey, model) {
credentials.aiProvider = { provider: 'openrouter', apiKey, model };
@@ -67,8 +72,8 @@ const AI_PROVIDER_GUIDE = {
keyUrl: 'https://platform.kimi.ai',
keyHint: 'from the Moonshot platform console',
instructions: ['Create an account', 'Open the API keys page and create a key'],
- models: ['kimi-k3', 'kimi-k2.7-code', 'kimi-k2.6'],
- defaultModel: 'kimi-k3',
+ models: [...PROVIDERS.kimi.models],
+ defaultModel: PROVIDERS.kimi.defaultModel,
covers: 'scripts only (add a Gemini or OpenAI key for images/voice)',
save(credentials, apiKey, model) {
credentials.aiProvider = { provider: 'kimi', apiKey, model };
@@ -80,8 +85,8 @@ const AI_PROVIDER_GUIDE = {
keyUrl: 'https://mimo.mi.com',
keyHint: 'from the MiMo console',
instructions: ['Create an account', 'Create an API key in the console'],
- models: ['mimo-v2.5-pro', 'mimo-v2.5'],
- defaultModel: 'mimo-v2.5-pro',
+ models: [...PROVIDERS.mimo.models],
+ defaultModel: PROVIDERS.mimo.defaultModel,
covers: 'scripts only (add a Gemini or OpenAI key for images/voice)',
save(credentials, apiKey, model) {
credentials.aiProvider = { provider: 'mimo', apiKey, model };
@@ -93,8 +98,8 @@ const AI_PROVIDER_GUIDE = {
keyUrl: 'https://z.ai',
keyHint: 'from the Z.ai console',
instructions: ['Create an account', 'Create an API key in the console'],
- models: ['glm-5.3', 'glm-5.2', 'glm-5.1'],
- defaultModel: 'glm-5.3',
+ models: [...PROVIDERS.glm.models],
+ defaultModel: PROVIDERS.glm.defaultModel,
covers: 'scripts only (add a Gemini or OpenAI key for images/voice)',
save(credentials, apiKey, model) {
credentials.aiProvider = { provider: 'glm', apiKey, model };