Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(web): keep local embedding tokenizer out of the browser bundle

3 months ago

6ed9959
Authored
asta-nguyen8/11/2026, 4:03:36 PM
Expose the local model catalog through the settings API
(localModels: string[]) instead of importing LOCAL_EMBEDDING_MODELS
from @openez-graph/core in the browser. This prevents Vite from
pulling @huggingface/tokenizers and other server-only deps into the
client bundle. The settings route now consumes the catalog from the
API response.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Parent592340e

4 files changed
  • apps/web/src/lib/api.ts+1−0
  • apps/web/src/routes/settings.tsx+4−7
  • apps/web/src/server/index.ts+2−1
  • tests/web-index-endpoint.test.ts+1−0