Skip to content

Commit

Permalink
Add claude-3-5-sonnet-20240620 model
Browse files Browse the repository at this point in the history
  • Loading branch information
wengchaoxi committed Jun 21, 2024
1 parent 03bab05 commit 1085a67
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**English** | [简体中文](./README.zh-CN.md)

Anthropic SDK implemented in Go, supporting models such as Claude 2.1, Claude 3 (supports sending images), etc.
Anthropic SDK implemented in Go, supporting models such as Claude 2.1, Claude 3, and Claude 3.5 (supports sending images), etc.

## Installation

Expand Down Expand Up @@ -31,7 +31,7 @@ func main() {
// })

resp, err := cli.CreateMessages(anthropic.MessagesRequest{
// `MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
// `MODEL_CLAUDE_35_SONNET`、`MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
Model: anthropic.MODEL_CLAUDE_3_HAIKU
Messages: []anthropic.Message{{
Role: "user",
Expand Down Expand Up @@ -71,7 +71,7 @@ func main() {
// })

stream, _ := cli.CreateMessagesStream(anthropic.MessagesRequest{
// `MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
// `MODEL_CLAUDE_35_SONNET`、`MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
Model: anthropic.MODEL_CLAUDE_3_HAIKU
Messages: []anthropic.Message{{
Role: "user",
Expand Down
6 changes: 3 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**简体中文** | [English](./README.md)

用 Go 实现的 Anthropic SDK,支持:Claude 2.1、Claude 3(支持发送图片)等模型。
用 Go 实现的 Anthropic SDK,支持:Claude 2.1、Claude 3、Claude 3.5(支持发送图片)等模型。

## 安装

Expand Down Expand Up @@ -31,7 +31,7 @@ func main() {
// })

resp, err := cli.CreateMessages(anthropic.MessagesRequest{
// `MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
// `MODEL_CLAUDE_35_SONNET`、`MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
Model: anthropic.MODEL_CLAUDE_3_HAIKU
Messages: []anthropic.Message{{
Role: "user",
Expand Down Expand Up @@ -71,7 +71,7 @@ func main() {
// })

stream, _ := cli.CreateMessagesStream(anthropic.MessagesRequest{
// `MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
// `MODEL_CLAUDE_35_SONNET`、`MODEL_CLAUDE_3_SONNET`、`MODEL_CLAUDE_3_OPUS`、`MODEL_CLAUDE_2_1`
Model: anthropic.MODEL_CLAUDE_3_HAIKU
Messages: []anthropic.Message{{
Role: "user",
Expand Down
2 changes: 2 additions & 0 deletions anthropic.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const (
MODEL_CLAUDE_3_SONNET = "claude-3-sonnet-20240229"
MODEL_CLAUDE_3_OPUS = "claude-3-opus-20240229"
MODEL_CLAUDE_3_HAIKU = "claude-3-haiku-20240307"

MODEL_CLAUDE_35_SONNET = "claude-3-5-sonnet-20240620"
)

// MessageContentText | MessageContentFile
Expand Down

0 comments on commit 1085a67

Please sign in to comment.