Skip to content

Commit d0e7279

Browse files
committed
Return a nil client
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 5db557a commit d0e7279

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/model/provider/anthropic/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func NewClient(ctx context.Context, cfg *latest.ModelConfig, env environment.Pro
122122
slog.Debug("Anthropic client created successfully", "model", cfg.Model)
123123

124124
if globalOptions.StructuredOutput() != nil {
125-
return &Client{}, errors.New("anthropic does not support native structured_output")
125+
return nil, errors.New("anthropic does not support native structured_output")
126126
}
127127

128128
return &Client{

0 commit comments

Comments
 (0)