Skip to content

Commit ebe409f

Browse files
committed
docs: add rate limits by provider section to README
1 parent 16f96ad commit ebe409f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,31 @@ The plugin automatically detects available credentials in this order:
257257
3. **Google** (Gemini Embeddings)
258258
4. **Ollama** (Local/Private - requires `nomic-embed-text`)
259259

260+
### Rate Limits by Provider
261+
262+
Each provider has different rate limits. The plugin automatically adjusts concurrency and delays:
263+
264+
| Provider | Concurrency | Delay | Best For |
265+
|----------|-------------|-------|----------|
266+
| **GitHub Copilot** | 1 | 4s | Small codebases (<1k files) |
267+
| **OpenAI** | 3 | 500ms | Medium codebases |
268+
| **Google** | 5 | 200ms | Medium-large codebases |
269+
| **Ollama** | 5 | None | Large codebases (10k+ files) |
270+
271+
**For large codebases**, use Ollama locally to avoid rate limits:
272+
273+
```bash
274+
# Install the embedding model
275+
ollama pull nomic-embed-text
276+
```
277+
278+
```json
279+
// .opencode/codebase-index.json
280+
{
281+
"embeddingProvider": "ollama"
282+
}
283+
```
284+
260285
## ⚠️ Tradeoffs
261286

262287
Be aware of these characteristics:

0 commit comments

Comments
 (0)