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"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -240,8 +241,9 @@ func (p *Provider) finalizeTools(tools []ToolDefinition, options map[string]any)
|
||||||
if hasForce {
|
if hasForce {
|
||||||
if forceStrict && !isNative {
|
if forceStrict && !isNative {
|
||||||
// Non-native providers don't support strict mode, ignore user setting
|
// Non-native providers don't support strict mode, ignore user setting
|
||||||
log.Printf(
|
slog.Warn(
|
||||||
"openai_compat: strict_mode=true ignored for non-OpenAI provider %q (unsupported field)",
|
"openai_compat: strict_mode=true ignored for non-OpenAI provider (unsupported field)",
|
||||||
|
"api_base",
|
||||||
p.apiBase,
|
p.apiBase,
|
||||||
)
|
)
|
||||||
useStrict = false
|
useStrict = false
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue