@ai-sdk/groq 4.0.0-beta.3 → 4.0.0-beta.31

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,112 +0,0 @@
1
- import { ProviderV3, LanguageModelV3, TranscriptionModelV3 } from '@ai-sdk/provider';
2
- import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
- import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
4
- import { z } from 'zod/v4';
5
-
6
- type GroqChatModelId = 'gemma2-9b-it' | 'llama-3.1-8b-instant' | 'llama-3.3-70b-versatile' | 'meta-llama/llama-guard-4-12b' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'deepseek-r1-distill-llama-70b' | 'meta-llama/llama-4-maverick-17b-128e-instruct' | 'meta-llama/llama-4-scout-17b-16e-instruct' | 'meta-llama/llama-prompt-guard-2-22m' | 'meta-llama/llama-prompt-guard-2-86m' | 'moonshotai/kimi-k2-instruct-0905' | 'qwen/qwen3-32b' | 'llama-guard-3-8b' | 'llama3-70b-8192' | 'llama3-8b-8192' | 'mixtral-8x7b-32768' | 'qwen-qwq-32b' | 'qwen-2.5-32b' | 'deepseek-r1-distill-qwen-32b' | (string & {});
7
- declare const groqLanguageModelOptions: z.ZodObject<{
8
- reasoningFormat: z.ZodOptional<z.ZodEnum<{
9
- parsed: "parsed";
10
- raw: "raw";
11
- hidden: "hidden";
12
- }>>;
13
- reasoningEffort: z.ZodOptional<z.ZodEnum<{
14
- none: "none";
15
- default: "default";
16
- low: "low";
17
- medium: "medium";
18
- high: "high";
19
- }>>;
20
- parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
21
- user: z.ZodOptional<z.ZodString>;
22
- structuredOutputs: z.ZodOptional<z.ZodBoolean>;
23
- strictJsonSchema: z.ZodOptional<z.ZodBoolean>;
24
- serviceTier: z.ZodOptional<z.ZodEnum<{
25
- on_demand: "on_demand";
26
- flex: "flex";
27
- auto: "auto";
28
- }>>;
29
- }, z.core.$strip>;
30
- type GroqLanguageModelOptions = z.infer<typeof groqLanguageModelOptions>;
31
-
32
- type GroqTranscriptionModelId = 'whisper-large-v3-turbo' | 'whisper-large-v3' | (string & {});
33
- declare const groqTranscriptionModelOptions: _ai_sdk_provider_utils.LazySchema<{
34
- language?: string | null | undefined;
35
- prompt?: string | null | undefined;
36
- responseFormat?: string | null | undefined;
37
- temperature?: number | null | undefined;
38
- timestampGranularities?: string[] | null | undefined;
39
- }>;
40
- type GroqTranscriptionModelOptions = InferSchema<typeof groqTranscriptionModelOptions>;
41
-
42
- declare const groqTools: {
43
- browserSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
44
- };
45
-
46
- interface GroqProvider extends ProviderV3 {
47
- /**
48
- * Creates a model for text generation.
49
- */
50
- (modelId: GroqChatModelId): LanguageModelV3;
51
- /**
52
- * Creates an Groq chat model for text generation.
53
- */
54
- languageModel(modelId: GroqChatModelId): LanguageModelV3;
55
- /**
56
- * Creates a model for transcription.
57
- */
58
- transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV3;
59
- /**
60
- * Tools provided by Groq.
61
- */
62
- tools: typeof groqTools;
63
- /**
64
- * @deprecated Use `embeddingModel` instead.
65
- */
66
- textEmbeddingModel(modelId: string): never;
67
- }
68
- interface GroqProviderSettings {
69
- /**
70
- * Base URL for the Groq API calls.
71
- */
72
- baseURL?: string;
73
- /**
74
- * API key for authenticating requests.
75
- */
76
- apiKey?: string;
77
- /**
78
- * Custom headers to include in the requests.
79
- */
80
- headers?: Record<string, string>;
81
- /**
82
- * Custom fetch implementation. You can use it as a middleware to intercept requests,
83
- * or to provide a custom fetch implementation for e.g. testing.
84
- */
85
- fetch?: FetchFunction;
86
- }
87
- /**
88
- * Create an Groq provider instance.
89
- */
90
- declare function createGroq(options?: GroqProviderSettings): GroqProvider;
91
- /**
92
- * Default Groq provider instance.
93
- */
94
- declare const groq: GroqProvider;
95
-
96
- /**
97
- * Browser search tool for Groq models.
98
- *
99
- * Provides interactive browser search capabilities that go beyond traditional web search
100
- * by navigating websites interactively and providing more detailed results.
101
- *
102
- * Currently supported on:
103
- * - openai/gpt-oss-20b
104
- * - openai/gpt-oss-120b
105
- *
106
- * @see https://console.groq.com/docs/browser-search
107
- */
108
- declare const browserSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
109
-
110
- declare const VERSION: string;
111
-
112
- export { type GroqLanguageModelOptions, type GroqProvider, type GroqLanguageModelOptions as GroqProviderOptions, type GroqProviderSettings, type GroqTranscriptionModelOptions, VERSION, browserSearch, createGroq, groq };