Skip to content

Commit

Permalink
docs: add documentation for Anthropic API integration (#3746)
Browse files Browse the repository at this point in the history
* docs: add documentation for Anthropic API integration

* docs: rename Anthropic documentation to reflect Claude model
  • Loading branch information
Sma1lboy authored Jan 22, 2025
1 parent 96b4b42 commit b87fc8f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions website/docs/references/models-http-api/anthropic-claude.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Anthropic Claude

[Anthropic](https://www.anthropic.com/) is an AI research company that develops large language models, including the Claude family of models. While Tabby doesn't natively support Claude's API, you can access Claude models through an OpenAI-compatible API interface using [claude2openai](https://github.com/missuo/claude2openai) as a middleware.

## Chat model

After deploying the claude2openai middleware, you can access all Claude family models through an OpenAI-compatible chat API interface.

```toml title="~/.tabby/config.toml"
[model.chat.http]
kind = "openai/chat"
model_name = "claude-3-sonnet-20240229"
# Middleware endpoint (adjust host and port according to your deployment)
api_endpoint = "http://127.0.0.1:6600/v1"
api_key = "your-api-key"
```

## Completion model

Anthropic currently does not offer completion-specific API endpoints.

## Embeddings model

Anthropic currently does not provide embedding model APIs.

0 comments on commit b87fc8f

Please sign in to comment.