mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
---
|
|
title: Claude
|
|
description: Anthropic Claude model configuration (Text Chat + Image Understanding)
|
|
---
|
|
|
|
Claude is provided by Anthropic and supports both text chat and image understanding. The mainstream Sonnet / Opus models natively support vision, so no separate Vision model needs to be specified.
|
|
|
|
<Tip>
|
|
All capabilities below can be configured in one place via the "Model Management" page in the Web Console, with no need to manually edit the configuration file.
|
|
</Tip>
|
|
|
|
## Text Chat
|
|
|
|
```json
|
|
{
|
|
"model": "claude-sonnet-4-6",
|
|
"claude_api_key": "YOUR_API_KEY"
|
|
}
|
|
```
|
|
|
|
| Parameter | Description |
|
|
| --- | --- |
|
|
| `model` | Supports `claude-sonnet-4-6`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-sonnet-4-5`, `claude-sonnet-4-0`, `claude-3-5-sonnet-latest`, etc. See [official models](https://docs.anthropic.com/en/docs/about-claude/models/overview) |
|
|
| `claude_api_key` | Create one in the [Claude Console](https://console.anthropic.com/settings/keys) |
|
|
| `claude_api_base` | Optional, defaults to `https://api.anthropic.com/v1`. Can be changed to a third-party proxy |
|
|
|
|
### Model Selection
|
|
|
|
| Model | Use Case |
|
|
| --- | --- |
|
|
| `claude-sonnet-4-6` | Default recommended, balanced cost and speed |
|
|
| `claude-opus-4-7` | Complex reasoning and long-running tasks; best quality but higher cost |
|
|
| `claude-sonnet-4-5` / `claude-sonnet-4-0` | Previous-generation flagships at a lower price |
|
|
|
|
## Image Understanding
|
|
|
|
Once `claude_api_key` is configured, the Agent's Vision tool automatically uses the Claude main model to recognize images, with no extra setup required.
|
|
|
|
To manually specify a Vision model, set it explicitly in the configuration file:
|
|
|
|
```json
|
|
{
|
|
"tools": {
|
|
"vision": {
|
|
"model": "claude-sonnet-4-6"
|
|
}
|
|
}
|
|
}
|
|
```
|