Metadata-Version: 2.4
Name: mrmd-ai
Version: 0.1.5
Summary: AI programs for MRMD editor - completions, fixes, and corrections
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: dspy>=2.6
Requires-Dist: fastapi>=0.115
Requires-Dist: litellm>=1.50
Requires-Dist: uvicorn>=0.32
Description-Content-Type: text/markdown

# MRMD AI Server

AI programs for the MRMD editor using DSPy.

## Programs

### Finish (Completion)
- `FinishSentencePredict` - Complete the current sentence
- `FinishParagraphPredict` - Complete the current paragraph
- `FinishCodeLinePredict` - Complete the current code line
- `FinishCodeSectionPredict` - Complete the current code section

### Fix (Correction)
- `FixGrammarPredict` - Fix grammar/spelling errors
- `FixTranscriptionPredict` - Fix speech-to-text errors

### Correct & Finish
- `CorrectAndFinishLinePredict` - Correct and complete current line
- `CorrectAndFinishSectionPredict` - Correct and complete current section

## Running

```bash
cd ai-server
uv run dspy-cli serve --port 8766
```

## Configuration

API keys are read from environment variables:
- `ANTHROPIC_API_KEY`
- `OPENAI_API_KEY`

See `dspy.config.yaml` for model configuration.
