Function: useLLM()
Call Signature
useLLM<
C>(props):LLMTypeMultimodal<C>
Defined in: hooks/natural_language_processing/useLLM.ts:20
React hook for managing a Large Language Model (LLM) instance.
Type Parameters
C
C extends readonly "vision"[]
Parameters
props
LLMProps & object
Object containing model, tokenizer, and tokenizer config sources.
Returns
An object implementing the LLMTypeMultimodal interface when model.capabilities is provided, otherwise LLMType.
Call Signature
useLLM(
props):LLMType
Defined in: hooks/natural_language_processing/useLLM.ts:23
React hook for managing a Large Language Model (LLM) instance.
Parameters
props
Object containing model, tokenizer, and tokenizer config sources.
Returns
An object implementing the LLMTypeMultimodal interface when model.capabilities is provided, otherwise LLMType.