UNPKG

gepa-spo

Version:

Genetic-Pareto prompt optimizer to evolve system prompts from a few rollouts with modular support and intelligent crossover

18 lines (17 loc) 601 B
import type { ChatLLM, LLM } from './types.js'; import { type Logger } from './logger.js'; export interface OpenAIClientsConfig { apiKey?: string; baseURL?: string; actorModel: string; judgeModel: string; temperature?: number; maxTokens?: number; /** Per-request timeout in milliseconds (defaults to 60000) */ requestTimeoutMs?: number; } /** Minimal OpenAI client (global fetch). Responses API for actor; Chat Completions for judge. */ export declare function makeOpenAIClients(cfg: OpenAIClientsConfig, logger?: Logger): { actorLLM: LLM; chatLLM: ChatLLM; };