Skip to content

Move ai settings to a config #17

Description

@aquaticcalf

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions