Add models doc
Browse files- docs/models.md +13 -0
docs/models.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Models (OpenCode V2)
|
| 2 |
+
|
| 3 |
+
Select model with /models. Use --model for one run. Set default model in config.
|
| 4 |
+
|
| 5 |
+
Free models: set OPENCODE_DISABLE_FREE_MODELS=1 to hide free OpenCode models.
|
| 6 |
+
|
| 7 |
+
Variants: add #variant, e.g. openai/gpt-6.1-sol#high. Define variants in model variants array.
|
| 8 |
+
|
| 9 |
+
Compatibility: reasoningField, requireReasoning, maxTokensField, cacheFormat, etc.
|
| 10 |
+
|
| 11 |
+
Local models: Ollama, LM Studio, vLLM auto-discovered. Custom OpenAI-compatible via providers config.
|
| 12 |
+
|
| 13 |
+
References: provider/model with optional #variant. Provider and model IDs case-sensitive.
|