UNPKG

@ai-sdk/groq

Version:

The **[Groq provider](https://ai-sdk.dev/providers/ai-sdk-providers/groq)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the Groq chat and completion APIs, transcription support, and browser search tool.

27 lines (23 loc) 732 B
import type { GroqChatModelId } from './groq-chat-language-model-options'; /** * Models that support browser search functionality. * Based on: https://console.groq.com/docs/browser-search */ export const BROWSER_SEARCH_SUPPORTED_MODELS: readonly GroqChatModelId[] = [ 'openai/gpt-oss-20b', 'openai/gpt-oss-120b', ] as const; /** * Check if a model supports browser search functionality. */ export function isBrowserSearchSupportedModel( modelId: GroqChatModelId, ): boolean { return BROWSER_SEARCH_SUPPORTED_MODELS.includes(modelId); } /** * Get a formatted list of supported models for error messages. */ export function getSupportedModelsString(): string { return BROWSER_SEARCH_SUPPORTED_MODELS.join(', '); }