-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website/docs/llm: Add Anthropic Documnetation
Signed-off-by: Panchajanya1999 <[email protected]>
- Loading branch information
1 parent
523b8d2
commit bd18ec9
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
description: Using LLMs from Anthropic (Claude) | ||
--- | ||
|
||
# Anthropic (Claude) | ||
|
||
1. Create an account on [Anthropic](https://www.anthropic.com/) and get your API key from the [Anthropic Console](https://console.anthropic.com/settings/keys). | ||
|
||
2. Add the following to your `taskweaver_config.json` file: | ||
|
||
```json showLineNumbers | ||
{ | ||
"llm.api_type": "anthropic", | ||
"llm.api_base": "https://api.anthropic.com/v1/messages", | ||
"llm.api_key": "YOUR_API_KEY", | ||
"llm.model": "claude-3-opus" | ||
} | ||
``` | ||
|
||
:::tip | ||
`llm.model` is the model name you want to use. You can find the list of available Claude models in the [Anthropic API documentation](https://docs.anthropic.com/claude/reference/selecting-a-model). | ||
::: | ||
|
||
:::info | ||
Anthropic's Claude API doesn't have a specific `response_format` parameter like OpenAI. If you need structured output, you should instruct Claude to respond in a specific format (e.g., JSON) within your prompts. | ||
::: | ||
|
||
:::caution | ||
Anthropic doesn't provide a native embedding service. If you need embeddings, you'll need to configure a different service for that functionality. | ||
::: | ||
|
||
3. Start TaskWeaver and chat with TaskWeaver using Claude. | ||
You can refer to the [Quick Start](../quickstart.md) for more details. | ||
|
||
Remember to replace `YOUR_API_KEY` with your actual Anthropic API key. |