mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-03 07:11:56 +00:00
The widget now ships with the docs agent's embed token, so the site works without any environment configuration. NEXT_PUBLIC_DOCSGPT_API_KEY still overrides it for staging. The key is public either way. NEXT_PUBLIC_* is inlined at build time, so it lands in the client bundle whichever way it is supplied, and every documented DocsGPT embed carries its key in the page. Abuse is bounded by the agent's daily request and token limits, enforced by check_usage on the answer and stream routes.