Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import type { ProviderModelRecord } from '../../packages/model-providers/src/providerModelCatalog.js';
export interface PiImportModel {
id: string;
provider: string;
api: string;
baseUrl?: string;
name?: string;
contextWindow?: number;
maxTokens?: number;
input?: string[];
output?: string[];
nativeApi?: string;
supportsFastMode?: boolean;
supportsToolCalls?: boolean;
reasoningRequired?: boolean;
reasoning?: boolean;
defaultEffort?: string | null;
thinkingLevelMap?: Record<string, string | null>;
cost?: Record<string, unknown>;
headers?: Record<string, string>;
compat?: Record<string, unknown>;
samplingParams?: Record<string, unknown>;
}
export function toCindyProviderModel(row: PiImportModel): ProviderModelRecord;
export function toCindyCatalog(providers: Record<string, PiImportModel[]>, generatedAt: string, options?: {
previous?: { providers: Record<string, ProviderModelRecord[]> };
onError?: (error: unknown) => void;
incompleteProviders?: Iterable<string>;
}): {
schemaVersion: number;
generatedAt: string;
source: string;
providers: Record<string, ProviderModelRecord[]>;
};