aiwrapper
Version:
A Universal AI Wrapper for JavaScript & TypeScript
19 lines (18 loc) • 693 B
TypeScript
import { OpenAIChatCompletionsLang } from "../openai/openai-chat-completions-lang.ts";
import { LangOptions, LangMessage } from "../language-provider.ts";
import { LangMessages } from "../messages.ts";
export type GroqLangOptions = {
apiKey: string;
model?: string;
systemPrompt?: string;
maxTokens?: number;
bodyProperties?: Record<string, any>;
};
export declare class GroqLang extends OpenAIChatCompletionsLang {
constructor(options: GroqLangOptions);
chat(messages: LangMessage[] | LangMessages, options?: LangOptions): Promise<LangMessages>;
private extractThinking;
private processChunkForThinking;
private callAPI;
private processResponse;
}