mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-07-28 01:27:58 +00:00
fix(openai_compat): use structured logger for native_search warning
This commit is contained in:
@@ -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"]),
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user