@ai-sdk/huggingface 2.0.0-beta.3 → 2.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts DELETED
@@ -1,59 +0,0 @@
1
- import { ProviderV3, LanguageModelV3 } from '@ai-sdk/provider';
2
- import { FetchFunction } from '@ai-sdk/provider-utils';
3
- export { OpenAICompatibleErrorData as HuggingFaceErrorData } from '@ai-sdk/openai-compatible';
4
-
5
- type HuggingFaceResponsesModelId = 'meta-llama/Llama-3.1-8B-Instruct' | 'meta-llama/Llama-3.1-70B-Instruct' | 'meta-llama/Llama-3.1-405B-Instruct' | 'meta-llama/Llama-3.3-70B-Instruct' | 'meta-llama/Meta-Llama-3-8B-Instruct' | 'meta-llama/Meta-Llama-3-70B-Instruct' | 'meta-llama/Llama-3.2-3B-Instruct' | 'meta-llama/Llama-4-Maverick-17B-128E-Instruct' | 'meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8' | 'meta-llama/Llama-Guard-4-12B' | 'deepseek-ai/DeepSeek-V3.1' | 'deepseek-ai/DeepSeek-V3-0324' | 'deepseek-ai/DeepSeek-R1' | 'deepseek-ai/DeepSeek-R1-0528' | 'deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B' | 'deepseek-ai/DeepSeek-R1-Distill-Qwen-7B' | 'deepseek-ai/DeepSeek-R1-Distill-Qwen-14B' | 'deepseek-ai/DeepSeek-R1-Distill-Qwen-32B' | 'deepseek-ai/DeepSeek-R1-Distill-Llama-8B' | 'deepseek-ai/DeepSeek-R1-Distill-Llama-70B' | 'deepseek-ai/DeepSeek-Prover-V2-671B' | 'Qwen/Qwen3-32B' | 'Qwen/Qwen3-14B' | 'Qwen/Qwen3-8B' | 'Qwen/Qwen3-4B' | 'Qwen/Qwen3-Coder-480B-A35B-Instruct' | 'Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8' | 'Qwen/Qwen3-30B-A3B' | 'Qwen/Qwen2.5-VL-7B-Instruct' | 'Qwen/Qwen2.5-7B-Instruct' | 'Qwen/Qwen2.5-Coder-7B-Instruct' | 'Qwen/Qwen2.5-Coder-32B-Instruct' | 'google/gemma-2-9b-it' | 'google/gemma-3-27b-it' | 'moonshotai/Kimi-K2-Instruct' | (string & {});
6
- interface HuggingFaceResponsesSettings {
7
- metadata?: Record<string, string>;
8
- instructions?: string;
9
- strictJsonSchema?: boolean;
10
- }
11
-
12
- interface HuggingFaceProviderSettings {
13
- /**
14
- * Hugging Face API key.
15
- */
16
- apiKey?: string;
17
- /**
18
- * Base URL for the API calls.
19
- */
20
- baseURL?: string;
21
- /**
22
- * Custom headers to include in the requests.
23
- */
24
- headers?: Record<string, string>;
25
- /**
26
- * Custom fetch implementation. You can use it as a middleware to intercept requests,
27
- * or to provide a custom fetch implementation for e.g. testing.
28
- */
29
- fetch?: FetchFunction;
30
- generateId?: () => string;
31
- }
32
- interface HuggingFaceProvider extends ProviderV3 {
33
- /**
34
- * Creates a Hugging Face responses model for text generation.
35
- */
36
- (modelId: HuggingFaceResponsesModelId): LanguageModelV3;
37
- /**
38
- * Creates a Hugging Face responses model for text generation.
39
- */
40
- languageModel(modelId: HuggingFaceResponsesModelId): LanguageModelV3;
41
- /**
42
- * Creates a Hugging Face responses model for text generation.
43
- */
44
- responses(modelId: HuggingFaceResponsesModelId): LanguageModelV3;
45
- /**
46
- * @deprecated Use `embeddingModel` instead.
47
- */
48
- textEmbeddingModel(modelId: string): never;
49
- }
50
- /**
51
- * Create a Hugging Face provider instance.
52
- */
53
- declare function createHuggingFace(options?: HuggingFaceProviderSettings): HuggingFaceProvider;
54
- /**
55
- * Default Hugging Face provider instance.
56
- */
57
- declare const huggingface: HuggingFaceProvider;
58
-
59
- export { type HuggingFaceProvider, type HuggingFaceProviderSettings, type HuggingFaceResponsesModelId, type HuggingFaceResponsesSettings, createHuggingFace, huggingface };