@subhajit-gorai/react-native-mediapipe-llm
Version:
React Native binding for Google AI Edge Gallery's MediaPipe on-device LLM inference engine
15 lines • 501 B
TypeScript
export interface LlmOptions {
modelPath?: string;
maxTokens?: number;
temperature?: number;
topK?: number;
topP?: number;
}
export interface LlmInferenceHook {
generateResponse: (prompt: string, partialCallback?: (partial: string) => void) => Promise<string>;
isInitialized: boolean;
initialize: (options: LlmOptions) => Promise<boolean>;
}
export declare function useLlmInference(): LlmInferenceHook;
export default useLlmInference;
//# sourceMappingURL=index.d.ts.map