diff --git a/generate-category-descriptions.js b/generate-category-descriptions.js index 1512f55..b300bde 100644 --- a/generate-category-descriptions.js +++ b/generate-category-descriptions.js @@ -10,7 +10,7 @@ const DIST_DIR = './dist'; const OUTPUT_CSV = './category-descriptions.csv'; // Model configuration -const MODEL = 'gpt-5.1'; +const MODEL = 'gpt-5.4'; // Initialize OpenAI client const openai = new OpenAI({ @@ -149,7 +149,7 @@ async function generateSEODescription(productListContent, categoryName, category } const response = await openai.responses.create({ - model: "gpt-5.1", + model: "gpt-5.4", input: [ { "role": "developer", diff --git a/translate-i18n.js b/translate-i18n.js index f1d0ca8..80e9c58 100755 --- a/translate-i18n.js +++ b/translate-i18n.js @@ -54,7 +54,7 @@ const LEGAL_FILES = [ ]; // Model configuration -const GERMAN_TO_ENGLISH_MODEL = 'gpt-5.1'; // High-quality model for German -> English (critical step) +const GERMAN_TO_ENGLISH_MODEL = 'gpt-5.4'; // High-quality model for German -> English (critical step) const ENGLISH_TO_OTHER_MODEL = 'gpt-4.1-mini'; // Faster/cheaper model for English -> Other languages // Supported languages for translation @@ -356,7 +356,7 @@ function writeTranslationFile(filePath, translationString) { } // Function to translate content using OpenAI (for German to English) -async function translateContent(content, systemPrompt, targetLanguage = null, model = 'gpt-5.1') { +async function translateContent(content, systemPrompt, targetLanguage = null, model = 'gpt-5.4') { try { const prompt = targetLanguage ? systemPrompt.replace(/{{targetLanguage}}/g, targetLanguage) @@ -379,7 +379,7 @@ async function translateContent(content, systemPrompt, targetLanguage = null, mo } // Function to translate English to other languages (optimized for caching) -async function translateToTargetLanguage(englishContent, targetLanguage, model = 'gpt-4o-mini', isLegalFile = false) { +async function translateToTargetLanguage(englishContent, targetLanguage, model = 'gpt-4.1-mini', isLegalFile = false) { try { // Choose appropriate system prompt based on file type const promptTemplate = isLegalFile