Skip to content

Configure LLM API key for grammar/markdown fixes #45

@dcasota

Description

@dcasota

Task Description

Set up LLM configuration (Gemini or XAI) for advanced fixes.

Options

  1. Google Gemini (Recommended):

  2. xAI (Grok):

Setup

# Option 1: Gemini
export GEMINI_API_KEY="your_key_here"

# Option 2: XAI  
export XAI_API_KEY="your_key_here"

Testing

# Test LLM fixes
python3 photonos-docs-lecturer.py run \
  --website https://127.0.0.1/docs-v5 \
  --local-webserver /var/www/photon-site \
  --fix 9 \
  --llm gemini \
  --GEMINI_API_KEY $GEMINI_API_KEY

Decision Points

  • Which LLM provider to use?
  • Budget/cost limits?
  • Make LLM optional or required?

Acceptance Criteria

  • ✅ API key obtained and configured
  • ✅ LLM fixes tested successfully
  • ✅ Cost/performance acceptable
  • ✅ Decision on optional vs required

Related

Labels

lecturer-integration, configuration, llm, medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions