Skip to content

Commit ea30766

Browse files
committed
fix(object): clarify tool-call generation error
1 parent 6d4b312 commit ea30766

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎object/object.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func GenerateWithTool(
124124
ProviderOptions: call.ProviderOptions,
125125
})
126126
if err != nil {
127-
return nil, fmt.Errorf("tool-based generation failed: %w", err)
127+
return nil, fmt.Errorf("structured output generation failed (tool-call strategy): %w", err)
128128
}
129129

130130
toolCalls := resp.Content.ToolCalls()

0 commit comments

Comments
 (0)