feat: add provider-native request switches (#5254)
This commit is contained in:
1 parent
5a1ab44baa
commit
67805f5db8
32 files changed
+1130
-52
No files matched your search
@@ -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":[]}',
|
||||
})),
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user