Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
imclerran authored May 16, 2024
1 parent d2da755 commit e805e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import ai.Chat
main =
apiKey = "<your_api_key>"
client = Chat.initClient { apiKey }
client = Chat.initClient { apiKey, model: "openai/gpt-4o" }
messages = Chat.appendUserMessage [] "Hello, world!"
response = Http.send! (Chat.buildRequest client messages)
when Chat.decodeResponseToFirstMessage response.body is
Expand Down

0 comments on commit e805e36

Please sign in to comment.