Skip to content

feat(utils): add question caching and smart model routing with partia…#1

Open
wshal wants to merge 1 commit into
masterfrom
fan-seeker
Open

feat(utils): add question caching and smart model routing with partia…#1
wshal wants to merge 1 commit into
masterfrom
fan-seeker

Conversation

@wshal

@wshal wshal commented Apr 12, 2026

Copy link
Copy Markdown
Owner

question UI

Implement LRU-based caching for AI responses to reduce redundant API calls, introduce complexity-based model routing to optimize response times, and add UI indicators for partial questions during listening.

  • Add lru-cache dependency to package.json
  • Create src/utils/cache.js with SimpleCache class for question/response storage
  • Create src/utils/router.js for query complexity analysis and model selection
  • Update src/utils/gemini.js to integrate caching and routing logic
  • Enhance AppHeader and CheatingDaddyApp components with partial question display styles
  • Add partial-question event channel to preload.js

…l question UI

Implement LRU-based caching for AI responses to reduce redundant API calls, introduce complexity-based model routing to optimize response times, and add UI indicators for partial questions during listening.

- Add lru-cache dependency to package.json
- Create src/utils/cache.js with SimpleCache class for question/response storage
- Create src/utils/router.js for query complexity analysis and model selection
- Update src/utils/gemini.js to integrate caching and routing logic
- Enhance AppHeader and CheatingDaddyApp components with partial question display styles
- Add partial-question event channel to preload.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant