Gemma4-WebGPU / src /hooks /useLLM.ts
BryanBradfo's picture
Gemma 4 multimodal WebGPU detection Space
576d07a
Raw
History Blame Contribute Delete
234 Bytes
import { useContext } from "react";
import { LLMContext } from "./LLMContext";
export function useLLM() {
const ctx = useContext(LLMContext);
if (!ctx) throw new Error("useLLM must be used inside <LLMProvider>");
return ctx;
}