Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere committed May 14, 2024
1 parent b08f464 commit 7c0781e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ func TestNewClient(t *testing.T) {
},
}

toolResults := make([]*cohere.ChatRequestToolResultsItem, 0)
toolResults := make([]*cohere.ToolResult, 0)

for _, toolCall := range toolsResponse.ToolCalls {
result := localTools[toolCall.Name](toolCall.Parameters["day"].(string))
toolResult := &cohere.ChatRequestToolResultsItem{
toolResult := &cohere.ToolResult{
Call: toolCall,
Outputs: *result,
}
Expand Down

0 comments on commit 7c0781e

Please sign in to comment.