Skip to content

createHuggingFaceAdapter

createHuggingFaceAdapter(config): HuggingFaceBackendAdapter

Defined in: backend/src/providers/huggingface.ts:492

Create a Hugging Face backend adapter.

BackendAdapterConfig

Adapter configuration

HuggingFaceBackendAdapter

Hugging Face backend adapter

import { createHuggingFaceAdapter } from 'ai.matey';
const adapter = createHuggingFaceAdapter({
apiKey: process.env.HUGGINGFACE_API_KEY,
});