feat(bisaya-course): refine phase 4 didactics and enhance course content generation
All checks were successful
Deploy to production / deploy (push) Successful in 5m19s

- Corrected grammatical errors and improved the phrasing in the BISAYA_PHASE4_DIDACTICS, ensuring clarity and accuracy in the learning materials.
- Updated the course content generation script to include lessons from phase 5, enhancing the overall structure and flow of the course.
- Introduced a new vocabulary course content synchronization process, improving the integration of vocabulary resources across different modules.
- Enhanced the VocabService to dynamically adjust temperature settings based on the mode, optimizing response generation for different contexts.
- Added new localized titles and vocabulary entries in multiple languages, enriching the learning experience for users.
This commit is contained in:
Torsten Schulz (local)
2026-04-17 16:00:41 +02:00
parent 5c315c477f
commit 71d5922409
18 changed files with 410 additions and 86 deletions

View File

@@ -2798,6 +2798,13 @@ export default class VocabService {
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), 30000);
const temperatureByMode = {
explain: 0.4,
practice: 0.5,
correct: 0.1
};
const temperature = Number.isFinite(temperatureByMode[mode]) ? temperatureByMode[mode] : 0.5;
let response;
try {
response = await fetch(endpoint, {
@@ -2806,7 +2813,7 @@ export default class VocabService {
signal: controller.signal,
body: JSON.stringify({
model: config.model,
temperature: 0.7,
temperature,
messages: [
{
role: 'system',