JavaScript FAQ
Authentication
- Env: TAXIA_API_KEY / VITE_TAXIA_API_KEY
- Avoid exposing keys; proxy through server if needed.
Cache
- cacheEnabled true → memory cache, TTL 1h
- Duplicate questions skip network
- Batch duplicates executed once
Retry/Timeout
- retry.retries targets HTTP 5xx only
- timeoutMs default 10s (streaming longer)
Streaming (SSE)
- Browser/Node supported
- Next.js proxy: keep text/event-stream
Bundle/Tree-shaking
- ESM/CJS/UMD, tree-shakeable
- Subpaths: @xaikorea0/js-client/react, @xaikorea0/js-client/vue
CORS
- Ensure endpoint allows browser CORS; otherwise proxy
Data loader
- Use HuggingFaceDataLoader (IndexedDB + ETag / Node stream)
Links
← Back to Docs Home