Search documentation of Ragex

# Ragex.AI.Provider.DeepSeekR1 (Ragex v0.4.0)

View Source

DeepSeek R1 API provider implementation.

Uses the DeepSeek API (OpenAI-compatible):

- Base URL: https://api.deepseek.com
- Models: deepseek-chat (non-thinking), deepseek-reasoner (thinking)
- API Docs: https://api-docs.deepseek.com/

## Configuration

In config/runtime.exs:

    config :ragex, :ai,
      api_key: System.fetch_env!("DEEPSEEK_API_KEY")

In config/config.exs:

    config :ragex, :ai,
      provider: :deepseek_r1,
      endpoint: "https://api.deepseek.com",
      model: "deepseek-chat"