Fix Codex OAuth tool mapping

This commit is contained in:
cyhhao
2026-01-09 18:35:58 +08:00
parent 0a9c17b9d1
commit 7a06c4873e
6 changed files with 1434 additions and 114 deletions

View File

@@ -220,7 +220,7 @@ func TestOpenAIInvalidBaseURLWhenAllowlistDisabled(t *testing.T) {
Credentials: map[string]any{"base_url": "://invalid-url"},
}
_, err := svc.buildUpstreamRequest(c.Request.Context(), c, account, []byte("{}"), "token", false)
_, err := svc.buildUpstreamRequest(c.Request.Context(), c, account, []byte("{}"), "token", false, "")
if err == nil {
t.Fatalf("expected error for invalid base_url when allowlist disabled")
}