from .env.example
# ── AI assistant (disabled by default) ───────────────────────────────────────
# Set to "true" to enable the Ask AI widget in the top bar.
# The widget is rendered even when disabled; it shows an informational notice.
NEXT_PUBLIC_DOCS_AI_ENABLED=false
# The following vars only matter when NEXT_PUBLIC_DOCS_AI_ENABLED=true.
# They are read by the /api/ask route at runtime (server-only, never sent to
# the browser).
# DOCS_AI_PROVIDER=anthropic
# DOCS_AI_MODEL=claude-haiku-4-5
# ANTHROPIC_API_KEY=
other than the api key, everything else makes more sense to me as a config file setting
we can have autocomplete and typesafety that way
also, why not make it a generic AI_API_KEY or something?
that way, i dont need to change env var name while changing providers
from .env.example
other than the api key, everything else makes more sense to me as a config file setting
we can have autocomplete and typesafety that way
also, why not make it a generic AI_API_KEY or something?
that way, i dont need to change env var name while changing providers