aiwrapper
Version:
A Universal AI Wrapper for JavaScript & TypeScript
16 lines (15 loc) • 505 B
TypeScript
import { OpenAIChatCompletionsLang } from "../openai/openai-chat-completions-lang.ts";
export type OpenRouterLangOptions = {
apiKey: string;
model?: string;
systemPrompt?: string;
maxTokens?: number;
maxCompletionTokens?: number;
siteUrl?: string;
siteName?: string;
headers?: Record<string, string>;
bodyProperties?: Record<string, unknown>;
};
export declare class OpenRouterLang extends OpenAIChatCompletionsLang {
constructor(options: OpenRouterLangOptions);
}