reneco-advanced-input-module 0.0.14 → 0.0.16
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.
- package/dist/cjs/voice-input-module.cjs.entry.js +4 -2
- package/dist/cjs/voice-input-module.cjs.entry.js.map +1 -1
- package/dist/cjs/voice-input-module.entry.cjs.js.map +1 -1
- package/dist/collection/services/llm.service.js +4 -2
- package/dist/collection/services/llm.service.js.map +1 -1
- package/dist/components/voice-input-module.js +4 -2
- package/dist/components/voice-input-module.js.map +1 -1
- package/dist/esm/voice-input-module.entry.js +4 -2
- package/dist/esm/voice-input-module.entry.js.map +1 -1
- package/dist/voice-input-module/{p-31382def.entry.js → p-835b3b72.entry.js} +3 -3
- package/dist/voice-input-module/p-835b3b72.entry.js.map +1 -0
- package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -1
- package/dist/voice-input-module/voice-input-module.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-31382def.entry.js → p-835b3b72.entry.js} +3 -3
- package/www/build/p-835b3b72.entry.js.map +1 -0
- package/www/build/{p-ddbc8089.js → p-d3887227.js} +1 -1
- package/www/build/voice-input-module.entry.esm.js.map +1 -1
- package/www/build/voice-input-module.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/voice-input-module/p-31382def.entry.js.map +0 -1
- package/www/build/p-31382def.entry.js.map +0 -1
|
@@ -491,8 +491,9 @@ class OpenAILLMService {
|
|
|
491
491
|
8. The current GMT datetime is ${new Date().toGMTString()}
|
|
492
492
|
9. Respect the constraints written between parenthesis for readonly status (readonly fields MUST NOT be filled with values), min and max values, whatever the transcription says
|
|
493
493
|
10. IMPORTANT: Fields marked as "readonly" are presentation elements (headers, labels) that provide context but MUST NOT receive values
|
|
494
|
-
11. IMPORTANT: Some field names may appear multiple times in the form (e.g., in different sub-sections marked by readonly headers).
|
|
494
|
+
11. IMPORTANT: Some field names may appear multiple times in the form (e.g., in different sub-sections marked by readonly headers). Pay close attention to the user's spoken context to determine which occurrence they are referring to. Only fill the specific occurrence mentioned by the user. If there is ANY doubt about which occurrence to fill, leave ALL of them empty to avoid errors
|
|
495
495
|
12. Use readonly fields as contextual hints to understand form structure and field grouping, but never fill them
|
|
496
|
+
13. CRITICAL: For select fields, options like "No", "Non", "Non applicable", "Inconnu", "Unknown", "N/A" are VALID VALUES that can be selected. When the user says these words, treat them as legitimate option choices, NOT always as negations or refusals to answer
|
|
496
497
|
|
|
497
498
|
Respond with JSON in this exact format: {"fields": [{"name": "field_name", "value": "extracted_value"}]}`;
|
|
498
499
|
let userPrompt = `
|
|
@@ -562,8 +563,9 @@ class OpenAILLMService {
|
|
|
562
563
|
9. The current GMT datetime is ${new Date().toGMTString()}
|
|
563
564
|
10. Respect the constraints written between parenthesis for readonly status (readonly fields MUST NOT be filled with values), min and max values, whatever the transcription says
|
|
564
565
|
11. IMPORTANT: Fields marked as "readonly" are presentation elements (headers, labels) that provide context but MUST NOT receive values
|
|
565
|
-
12. IMPORTANT: Some field names may appear multiple times in the form (e.g., in different sub-sections marked by readonly headers).
|
|
566
|
+
12. IMPORTANT: Some field names may appear multiple times in the form (e.g., in different sub-sections marked by readonly headers). Pay close attention to the user's spoken context to determine which occurrence they are referring to. Only fill the specific occurrence mentioned by the user. If there is ANY doubt about which occurrence to fill, leave ALL of them empty to avoid errors
|
|
566
567
|
13. Use readonly fields as contextual hints to understand form structure and field grouping, but never fill them
|
|
568
|
+
14. CRITICAL: For select fields, options like "No", "Non", "Non applicable", "Inconnu", "Unknown", "N/A" are VALID VALUES that can be selected. When the user says these words, treat them as legitimate option choices, NOT always as negations or refusals to answer
|
|
567
569
|
|
|
568
570
|
Respond with JSON in this exact format: {"schema": {...}}`;
|
|
569
571
|
let userPrompt = `
|