mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-01 23:24:18 +01:00
docs: rename opencode to OpenCode
This commit is contained in:
@@ -3,13 +3,13 @@ title: Models
|
||||
description: Configuring an LLM provider and model.
|
||||
---
|
||||
|
||||
opencode uses the [AI SDK](https://ai-sdk.dev/) and [Models.dev](https://models.dev) to support for **75+ LLM providers** and it supports running local models.
|
||||
OpenCode uses the [AI SDK](https://ai-sdk.dev/) and [Models.dev](https://models.dev) to support for **75+ LLM providers** and it supports running local models.
|
||||
|
||||
---
|
||||
|
||||
## Providers
|
||||
|
||||
Most popular providers are preloaded by default. If you've added the credentials for a provider through `opencode auth login`, they'll be available when you start opencode.
|
||||
Most popular providers are preloaded by default. If you've added the credentials for a provider through `opencode auth login`, they'll be available when you start OpenCode.
|
||||
|
||||
Learn more about [providers](/docs/providers).
|
||||
|
||||
@@ -35,7 +35,7 @@ Consider using one of the models we recommend.
|
||||
|
||||
However, there are a only a few of them that are good at both generating code and tool calling.
|
||||
|
||||
Here are the ones we recommend with opencode:
|
||||
Here are the ones we recommend with OpenCode:
|
||||
|
||||
- Claude Sonnet 4
|
||||
- Claude Opus 4
|
||||
@@ -49,7 +49,7 @@ Here are the ones we recommend with opencode:
|
||||
## Set a default
|
||||
|
||||
To set one of these as the default model, you can set the `model` key in your
|
||||
opencode config.
|
||||
OpenCode config.
|
||||
|
||||
```json title="opencode.json" {3}
|
||||
{
|
||||
@@ -139,11 +139,11 @@ You can also define custom models that extend built-in ones and can optionally u
|
||||
|
||||
## Loading models
|
||||
|
||||
When opencode starts up, it checks for models in the following priority order:
|
||||
When OpenCode starts up, it checks for models in the following priority order:
|
||||
|
||||
1. The `--model` or `-m` command line flag. The format is the same as in the config file: `provider_id/model_id`.
|
||||
|
||||
2. The model list in the opencode config.
|
||||
2. The model list in the OpenCode config.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user