Skip to content

Vercel.AI.HuggingFace

API reference

Public types in the Vercel.AI.HuggingFace namespace.

Type Summary
HuggingFaceProvider HuggingFace provider. OpenAI Chat Completions compatible at https://router.huggingface.co/v1.
HuggingFaceReasoning Reasoning text that carries the Responses output item id.
HuggingFaceResponsesLanguageModel Hugging Face Responses model. LanguageModel(string) stays on Chat Completions so existing chat clients keep working. Call ResponsesModel(string) for /responses.
HuggingFaceServiceCollectionExtensions Registers HuggingFaceProvider.
HuggingFaceText Generated text that carries the Responses output item id.
HuggingFaceToolCall A tool call that Hugging Face ran itself, such as an MCP call.
HuggingFaceToolResult A tool result returned in the response output.

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product