Skip to content

Commit

Permalink
Update readme optimizations it tests (#24)
Browse files Browse the repository at this point in the history
* working tools function calling w/ integration test

* added some godocs

* Add message tools example to README

* Update anthropic message request with new model
  • Loading branch information
madebywelch authored Apr 22, 2024
1 parent 7c6331b commit f5de102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit f5de102

Please sign in to comment.