@zodic/shared 0.0.191 → 0.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -94,7 +94,7 @@ export class ConceptService {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
console.log(`✏️ Generating new name...`);
|
|
97
|
-
const recentNamesEN = allNamesEN.slice(-
|
|
97
|
+
const recentNamesEN = allNamesEN.slice(-40);
|
|
98
98
|
const messages = this.context
|
|
99
99
|
.buildLLMMessages()
|
|
100
100
|
.generateConceptBasicInfo({
|
|
@@ -160,7 +160,7 @@ export class ConceptService {
|
|
|
160
160
|
console.log(`✅ Stored basic info for ${conceptSlug}, combination: ${combinationString}.`);
|
|
161
161
|
|
|
162
162
|
// ✅ **Throttling for next request**
|
|
163
|
-
const delayMs = Math.floor(Math.random() * (500 - 200 + 1)) +
|
|
163
|
+
const delayMs = Math.floor(Math.random() * (500 - 200 + 1)) + 200; // 🔥 Random delay between 200-500ms
|
|
164
164
|
console.log(`⏳ Waiting ${delayMs}ms before processing next missing entry...`);
|
|
165
165
|
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
166
166
|
|
|
@@ -186,7 +186,7 @@ export class ConceptService {
|
|
|
186
186
|
throw new Error(`Failed to generate basic info after ${maxAttempts} attempts.`);
|
|
187
187
|
}
|
|
188
188
|
console.log('🔁 Retrying...');
|
|
189
|
-
await new Promise((resolve) => setTimeout(resolve,
|
|
189
|
+
await new Promise((resolve) => setTimeout(resolve, 300));
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
}
|