feat: add provider-native request switches (#5254)

This commit is contained in:
chengyongru authored and GitHub committed 2026-08-05 18:26:39 +08:00
1 parent 5a1ab44baa
commit 67805f5db8
32 files changed
+1130 -52

No files matched your search

+2 -2
View File
@@ -580,7 +580,7 @@ describe("webui API helpers", () => {
await updateProviderSettings("tok", {
provider: "xai_grok",
proxy: "http://127.0.0.1:7890",
extraBody: '{"service_tier":"priority"}',
extraBody: '{"tools":[]}',
});
expect(fetch).toHaveBeenCalledWith(
@@ -590,7 +590,7 @@ describe("webui API helpers", () => {
Authorization: "Bearer tok",
"X-Nanobot-Provider-Values": encodeURIComponent(JSON.stringify({
proxy: "http://127.0.0.1:7890",
extraBody: '{"service_tier":"priority"}',
extraBody: '{"tools":[]}',
})),
},
}),