UNPKG

@topgroup/diginext

Version:

A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.

27 lines 1.13 kB
import type { AxiosRequestConfig } from "axios"; export declare const OPENROUTER_BASE_API_URL = "https://openrouter.ai/api/v1"; export declare const aiModels: readonly ["deepseek/deepseek-coder", "google/gemini-flash-1.5", "google/gemini-pro-1.5", "openai/gpt-4o", "openai/gpt-3.5-turbo", "openai/gpt-3.5-turbo-16k", "openai/gpt-4", "openai/gpt-4-32k", "anthropic/claude-3.5-sonnet", "anthropic/claude-2", "anthropic/claude-instant-v1", "meta-llama/llama-2-13b-chat", "meta-llama/llama-2-70b-chat", "qwen/qwen-2.5-coder-32b-instruct"]; export type AIModel = (typeof aiModels)[number]; export interface AIDto { model?: AIModel; messages: { role: "system" | "user"; content: string; }[]; } export interface OpenRouterResponseData { model: AIModel; choices: { message: { role: string; content: string; }; }[]; } export declare function aiApi<T = OpenRouterResponseData>(options: AxiosRequestConfig & { baseUrl?: string; apiKey?: string; data?: AIDto; isDebugging?: boolean; }): Promise<T>; //# sourceMappingURL=openrouter-api.d.ts.map