createHuggingFaceAdapter
createHuggingFaceAdapter(
config):HuggingFaceBackendAdapter
Defined in: backend/src/providers/huggingface.ts:492
Create a Hugging Face backend adapter.
Parameters
Section titled “Parameters”config
Section titled “config”Adapter configuration
Returns
Section titled “Returns”Hugging Face backend adapter
Example
Section titled “Example”import { createHuggingFaceAdapter } from 'ai.matey';
const adapter = createHuggingFaceAdapter({ apiKey: process.env.HUGGINGFACE_API_KEY,});