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 { useQuery, UseQueryResult } from "@tanstack/react-query";
import { getLicenseInfo, LicenseInfo } from "@/components/networking";
import { createQueryKeys } from "../common/queryKeysFactory";
const licenseInfoKeys = createQueryKeys("licenseInfo");
export const useLicenseInfo = (accessToken: string | null | undefined): UseQueryResult<LicenseInfo | null> => {
const options = {
queryKey: licenseInfoKeys.detail("license"),
queryFn: () => getLicenseInfo(accessToken!),
enabled: Boolean(accessToken),
staleTime: 5 * 60 * 1000,
retry: false,
};
return useQuery<LicenseInfo | null>(options);
};