/** * @license * Copyright 2025 OSAgent OC * SPDX-License-Identifier: Apache-2.0 */ import type OpenAI from 'openai'; import type { Config } from '../../../config/config.js'; import type { ContentGeneratorConfig } from '../../contentGenerator.js'; import { DefaultOpenAICompatibleProvider } from './default.js'; /** * GROQ provider for fast inference with models like Kimi K2. * GROQ uses OpenAI-compatible API at api.groq.com */ export declare class GroqOpenAICompatibleProvider extends DefaultOpenAICompatibleProvider { constructor(contentGeneratorConfig: ContentGeneratorConfig, cliConfig: Config); /** * Check if this is a GROQ provider based on baseUrl or API key prefix */ static isGroqProvider(contentGeneratorConfig: ContentGeneratorConfig): boolean; /** * Check if model is a Kimi model from Moonshot AI */ static isKimiModel(model: string): boolean; buildHeaders(): Record; buildRequest(request: OpenAI.Chat.ChatCompletionCreateParams, _userPromptId: string): OpenAI.Chat.ChatCompletionCreateParams; /** * Get GROQ base URL */ static getGroqBaseUrl(): string; /** * Validate GROQ credentials by calling the models endpoint. */ validateCredentials(): Promise; }