mirror of
https://github.com/czl9707/build-your-own-openclaw.git
synced 2026-08-14 00:47:59 +00:00
Add provider examples for Anthropic, Qwen, Grok, and Gemini (#8)
Fixes #6 - Add Provider Example Configuration Co-authored-by: Jah-yee <jah.yee@example.com>
This commit is contained in:
co-authored by
Jah-yee
parent
39e8be3209
commit
32c4c3c1ea
+45
-1
@@ -29,4 +29,48 @@ llm:
|
||||
model: "zai/glm-4.7"
|
||||
api_key: your-zai-api-key
|
||||
api_base: "https://api.z.ai/api/coding/paas/v4"
|
||||
```
|
||||
```
|
||||
|
||||
### Anthropic
|
||||
|
||||
```yaml
|
||||
llm:
|
||||
provider: anthropic
|
||||
model: claude-sonnet-4-20250514
|
||||
api_key: your-anthropic-api-key
|
||||
```
|
||||
Get your API key at [Anthropic Console](https://console.anthropic.com).
|
||||
|
||||
### Qwen (OpenAI-compatible)
|
||||
|
||||
```yaml
|
||||
llm:
|
||||
provider: openai
|
||||
model: qwen/qwen-max
|
||||
api_key: your-dashscope-api-key
|
||||
api_base: https://dashscope.aliyuncs.com/compatible-mode/v1
|
||||
temperature: 0.7
|
||||
```
|
||||
Get your API key at [DashScope](https://dashscope.console.aliyun.com).
|
||||
|
||||
### Grok (OpenAI-compatible)
|
||||
|
||||
```yaml
|
||||
llm:
|
||||
provider: openai
|
||||
model: grok-2-1212
|
||||
api_key: your-x-api-key
|
||||
api_base: https://api.x.ai/v1
|
||||
temperature: 0.7
|
||||
```
|
||||
Get your API key at [x.ai](https://console.x.ai).
|
||||
|
||||
### Gemini (Google AI)
|
||||
|
||||
```yaml
|
||||
llm:
|
||||
provider: google
|
||||
model: gemini-2.0-flash
|
||||
api_key: your-google-api-key
|
||||
```
|
||||
Get your API key at [Google AI Studio](https://aistudio.google.com/app/apikey).
|
||||
|
||||
Reference in New Issue
Block a user