@yuxilabs/gptp-core
Version:
Core validation, formatting and execution logic for the GPTP file format.
20 lines • 778 B
TypeScript
import type { GPTPDocument, GPTPParams } from '@/types/gptpTypes';
export type ProviderType = 'openai' | 'microsoft' | 'anthropic' | 'mistral' | 'cohere' | 'meta' | 'local';
export interface ProviderSelection {
name: string;
type: ProviderType;
call: (opts: {
messages: {
role: string;
content: string;
}[];
model: string;
temperature: number;
top_p: number;
max_tokens: number;
signal?: AbortSignal;
}) => Promise<any>;
}
export declare function selectProvider(prompt: GPTPDocument): ProviderSelection;
export declare function mapParams(params?: GPTPParams): Required<Pick<GPTPParams, 'model' | 'temperature' | 'top_p' | 'max_tokens'>>;
//# sourceMappingURL=providerRouter.d.ts.map