Skip to content

Commit 8d5aecb

Browse files
fix: use correct Prompt field in ChatRequest example
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
1 parent ec25226 commit 8d5aecb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/basic/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020

2121
// Chat
2222
resp, err := client.Chat(context.Background(), hawksdk.ChatRequest{
23-
Message: "Explain what a closure is in Go",
23+
Prompt: "Explain what a closure is in Go",
2424
})
2525
if err != nil {
2626
log.Fatal(err)

0 commit comments

Comments
 (0)