diff --git a/pkg/providers/openai_compat/provider.go b/pkg/providers/openai_compat/provider.go index c12a8348f..317a49308 100644 --- a/pkg/providers/openai_compat/provider.go +++ b/pkg/providers/openai_compat/provider.go @@ -160,9 +160,12 @@ func (p *Provider) buildRequestBody( // treat it as false — web_search_preview must not be injected // when the caller cannot express a well-typed intent. if _, present := options["native_search"]; present { - log.Printf( - "[openai_compat] native_search option has unexpected type %T, ignoring", - options["native_search"], + logger.WarnCF( + "provider.openai_compat", + "native_search option has unexpected type, ignoring", + map[string]any{ + "type": fmt.Sprintf("%T", options["native_search"]), + }, ) } }