cloze-reader / src /aiService.js

Commit History

feat: implement batch API processing for both passages
cd16e7b

milwright commited on

fix: improve word selection and passage quality filtering
b37374a

milwright commited on

fix: clean up AI response processing and improve UI
b451c6e

milwright commited on

feat: implement two-passage system to avoid OpenRouter rate limits
106bc8b

milwright commited on

debug: add API response logging to identify contextualization issue after first round
cca074a

milwright commited on

fix: clean contextualization artifacts and ensure passages start properly
4f8034e

milwright commited on

fix: clean AI responses to remove JSON artifacts and markdown formatting
dfcab2f

milwright commited on

fix: resolve HF dataset loading errors and improve word selection
6839f0d

milwright commited on

fix: provide target word to AI while preventing disclosure
13ed840

milwright commited on

fix: add robust API error handling for data.choices undefined
9c565fb

milwright commited on

fix: improve word selection and remove markdown formatting
b874e04

milwright commited on

fix: implement constrained prompts matching tool-calling behavior
18f0d59

milwright commited on

refactor: reduce technical debt by removing unused methods and tool definitions
6e0c330

milwright commited on

refactor: proper separation of concerns - aiService as API wrapper, conversationManager builds prompts
2b8632d

milwright commited on

fix: make chat responses direct and concise like proper clues
7a48149

milwright commited on

fix: replace tool-calling with simple direct prompts like main branch
a261c04

milwright commited on

fix: prevent AI hallucination and remove problematic tool_choice parameter
243e743

milwright commited on

fix: correct tool-calling format and contextualization truncation
78a1f73

milwright commited on

fix: restore working chat and contextualization logic
09d70c8

milwright commited on

fix: restore tool-calling chat prompt engineering
25876df

milwright commited on

fix: add runtime API key checking and comprehensive debugging
7d032f3

milwright commited on

fix: restore missing AI methods for word selection and chat
47a380e

milwright commited on

feat: add clean aiService.js without hardcoded keys
63a5bc1

milwright commited on