From f5de10292fcd763e7a211a1e9a4b3cc5cbf9ddbf Mon Sep 17 00:00:00 2001 From: Robert Welch Date: Sun, 21 Apr 2024 20:09:11 -0400 Subject: [PATCH] Update readme optimizations it tests (#24) * working tools function calling w/ integration test * added some godocs * Add message tools example to README * Update anthropic message request with new model --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 508da76..e2c5fab 100644 --- a/README.md +++ b/README.md @@ -183,8 +183,8 @@ func main() { // Prepare a message request request := anthropic.NewMessageRequest( - []anthropic.MessagePartRequest{{Role: "user", Content: "Hello, Good Morning!. How are you today?"}}, - anthropic.WithModel[anthropic.MessageRequest](anthropic.Claude3Haiku), + []anthropic.MessagePartRequest{{Role: "user", Content: "Hello, Good Morning!"}}, + anthropic.WithModel[anthropic.MessageRequest](anthropic.ClaudeV2_1), anthropic.WithMaxTokens[anthropic.MessageRequest](20), anthropic.WithStreaming[anthropic.MessageRequest](true), )