Api Ai Config

Return AI capability info for the current user.

Used by the front-end to decide whether to show BYOK input, free-tier prompt, or server-proxy mode for the new /api/ai/ask endpoint.

get/api/ai/config

Request

  • Base URL: https://www.oxfordledge.com (the document declares no server; this is the origin it was published from)
  • URL: https://www.oxfordledge.com/api/ai/config
  • Auth: none declared

Response

Successful Response

byok_supportedboolean required

True iff BYOK (bring-your-own-key) flow is enabled. Currently always true; reserved as a kill-switch.

byok_providersstring[] required

Supported BYOK providers. Currently ['anthropic', 'openai', 'google'].

authenticatedboolean required

True iff the request carried a valid session.

free_tier_creditsinteger required

Configured free-tier daily/monthly credit limit. Read from FREE_AI_DAILY_LIMITS['free'].

free_credits_usedinteger required

Credits consumed this period. Currently always 0 (placeholder until monthly budget tracking is wired).

free_credits_remaininginteger required

max(0, free_tier_credits - free_credits_used).

modelsobject required

Provider → model-id map for BYOK flows. Frontend renders these in the model selector.

max_question_lengthinteger required

Hard cap on question text length. Backend rejects above this.

rag_enabledboolean required

True iff RAG retrieval is active. False would gate the citation UI.

rag_sourcesstring[] required

Active RAG corpora. Currently ['sec_filings', 'earnings_transcripts'].

advisory_refusal_enabledboolean required

True iff the advisory-refusal pattern (no specific buy/sell recs) is enforced server-side.

Changes

No recorded changes to this operation across all 1 revision of this API.