fix: resolve merge conflicts and update to new provider structure with slog
This commit is contained in:
parent
a10f3fd8ec
commit
6b8d8bc85c
1 changed files with 4 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
|
@ -240,8 +241,9 @@ func (p *Provider) finalizeTools(tools []ToolDefinition, options map[string]any)
|
|||
if hasForce {
|
||||
if forceStrict && !isNative {
|
||||
// Non-native providers don't support strict mode, ignore user setting
|
||||
log.Printf(
|
||||
"openai_compat: strict_mode=true ignored for non-OpenAI provider %q (unsupported field)",
|
||||
slog.Warn(
|
||||
"openai_compat: strict_mode=true ignored for non-OpenAI provider (unsupported field)",
|
||||
"api_base",
|
||||
p.apiBase,
|
||||
)
|
||||
useStrict = false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue