mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Move the docs and bot-docs RAG clients (search/chat/index) off the
residual /api/ prefix to top-level /v1/, matching the cloud-api route
rename and the openapi v1.0.0 lock-in (no /api/ prefix):
/api/search-docs -> /v1/search-docs
/api/chat-docs -> /v1/chat-docs
/api/index-docs -> /v1/index-docs
Touched: apps/{docs,bot-docs}/lib/hanzo/client.ts,
apps/docs/scripts/update-hanzo-index.ts, the .env.example (also
corrects the stale cloud-api.hanzo.ai host -> api.hanzo.ai front door),
and the two generate-search-index.py docstrings.
Server-side these are served at /v1/ by hanzoai/ai (bare search/chat/
index-docs); deeper product GETs by hanzoai/cloud productsvc. Hard
cutover, coordinated with cloud, universe cloud-api-v1 AUTH_PUBLIC_PATHS,
python-sdk, and the openapi cloud spec.
18 lines
574 B
TypeScript
18 lines
574 B
TypeScript
export const searchEndpoint =
|
|
process.env.NEXT_PUBLIC_HANZO_SEARCH_ENDPOINT ??
|
|
'https://api.hanzo.ai/v1/search-docs?store=bot-docs';
|
|
|
|
export const indexEndpoint =
|
|
process.env.HANZO_SEARCH_INDEX_ENDPOINT ??
|
|
'https://api.hanzo.ai/v1/index-docs?store=bot-docs';
|
|
|
|
export const chatEndpoint =
|
|
process.env.NEXT_PUBLIC_HANZO_CHAT_ENDPOINT ??
|
|
'https://api.hanzo.ai/v1/chat-docs?store=bot-docs';
|
|
|
|
export const publishableKey =
|
|
process.env.NEXT_PUBLIC_HANZO_SEARCH_KEY ?? 'pk-hanzo-docs-search-2026';
|
|
|
|
export const adminKey =
|
|
process.env.HANZO_SEARCH_ADMIN_KEY ?? '';
|