Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ toolList.Add(tool)

c := chat.Chat{
Messages: chat.NewMessages(),
Tools: &toolList,
Tools: toolList,
}

for event := range c.SendUserStream(ctx, &client, "What's the weather in Berlin?") {
Expand Down
2 changes: 1 addition & 1 deletion examples/approval-flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {

c := chat.Chat{
Messages: chat.NewMessages(),
Tools: &toolList,
Tools: toolList,
}

// Prime the model with a concrete tool usage example before the real prompt
Expand Down
2 changes: 0 additions & 2 deletions examples/simple-chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ func main() {
Model: os.Getenv("OPENROUTER_MODEL"),
}

t := tools.NewTools()
c := chat.Chat{
Messages: chat.NewMessages(),
Tools: &t,
}

fmt.Println(colorize(dim, "Type your message and press Enter. Ctrl+C or Ctrl+D to exit."))
Expand Down