Skip to content

Commit 8dbd467

Browse files
committed
docs: document provider modes and runtime endpoint
1 parent fc4f921 commit 8dbd467

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,21 @@ packages/
107107
Set these variables in `apps/api/.env`:
108108

109109
```bash
110+
STACKFORGE_PROVIDER=openrouter
110111
OPENROUTER_API_KEY=your_key_here
111112
OPENROUTER_ENDPOINT=https://openrouter.ai/api/v1/chat/completions
112113
OPENROUTER_APP_NAME=stackforge-api
113114
OPENROUTER_APP_URL=http://localhost:3001
114115
```
115116

117+
`STACKFORGE_PROVIDER` supports:
118+
- `openrouter`: forces real LLM execution (requires `OPENROUTER_API_KEY`)
119+
- `mock`: forces deterministic offline agent responses
120+
- omitted/`auto`: uses `openrouter` when API key is present, otherwise `mock`
121+
122+
Runtime/provider health is exposed at:
123+
- `GET /api/runtime`
124+
116125
---
117126

118127
## 📉 Token Tuning Guide

0 commit comments

Comments
 (0)