The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
import { updateWebSearchInterceptionSettings, type WebSearchInterceptionSettings } from "@/components/networking";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { createQueryKeys } from "../common/queryKeysFactory";
const webSearchInterceptionSettingsKeys = createQueryKeys("webSearchInterceptionSettings");
export const useUpdateWebSearchInterceptionSettings = (accessToken: string) => {
const queryClient = useQueryClient();
return useMutation({
mutationFn: async (settings: WebSearchInterceptionSettings) => {
if (!accessToken) {
throw new Error("Access token is required");
}
return updateWebSearchInterceptionSettings(accessToken, settings);
},
onSuccess: () => {
queryClient.invalidateQueries({
queryKey: webSearchInterceptionSettingsKeys.all,
});
},
});
};