mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
docs: edit
This commit is contained in:
parent
a2951a2702
commit
e3e16e58c5
1 changed files with 36 additions and 36 deletions
|
|
@ -374,42 +374,6 @@ Some models need to be manually enabled in your [GitHub Copilot settings](https:
|
|||
|
||||
---
|
||||
|
||||
### Groq
|
||||
|
||||
1. Head over to the [Groq console](https://console.groq.com/), click **Create API Key**, and copy the key.
|
||||
|
||||
2. Run `opencode auth login` and select Groq.
|
||||
|
||||
```bash
|
||||
$ opencode auth login
|
||||
|
||||
┌ Add credential
|
||||
│
|
||||
◆ Select provider
|
||||
│ ● Groq
|
||||
│ ...
|
||||
└
|
||||
```
|
||||
|
||||
3. Enter the API key for the provider.
|
||||
|
||||
```bash
|
||||
$ opencode auth login
|
||||
|
||||
┌ Add credential
|
||||
│
|
||||
◇ Select provider
|
||||
│ Groq
|
||||
│
|
||||
◇ Enter your API key
|
||||
│ _
|
||||
└
|
||||
```
|
||||
|
||||
4. Run the `/models` command to select the one you want.
|
||||
|
||||
---
|
||||
|
||||
### Google Vertex AI
|
||||
|
||||
To use Google Vertex AI with OpenCode:
|
||||
|
|
@ -446,6 +410,42 @@ To use Google Vertex AI with OpenCode:
|
|||
|
||||
---
|
||||
|
||||
### Groq
|
||||
|
||||
1. Head over to the [Groq console](https://console.groq.com/), click **Create API Key**, and copy the key.
|
||||
|
||||
2. Run `opencode auth login` and select Groq.
|
||||
|
||||
```bash
|
||||
$ opencode auth login
|
||||
|
||||
┌ Add credential
|
||||
│
|
||||
◆ Select provider
|
||||
│ ● Groq
|
||||
│ ...
|
||||
└
|
||||
```
|
||||
|
||||
3. Enter the API key for the provider.
|
||||
|
||||
```bash
|
||||
$ opencode auth login
|
||||
|
||||
┌ Add credential
|
||||
│
|
||||
◇ Select provider
|
||||
│ Groq
|
||||
│
|
||||
◇ Enter your API key
|
||||
│ _
|
||||
└
|
||||
```
|
||||
|
||||
4. Run the `/models` command to select the one you want.
|
||||
|
||||
---
|
||||
|
||||
### LM Studio
|
||||
|
||||
You can configure opencode to use local models through LM Studio.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue