UNPKG

openai-compatible-task-master

Version:

使用MCP解析PRD文档并生成任务列表

12 lines (11 loc) 681 B
import type { Response } from 'node-fetch'; import { TaskData, RawTaskData } from './types.js'; export declare function cleanJsonContent(jsonContent: string): string; export declare function processDependencies(dependencies: unknown): string[]; export declare function normalizeTaskData(task: RawTaskData): TaskData; export declare function handleApiError(response: Response): Promise<never>; export declare function handleStreamResponse(responseBody: NodeJS.ReadableStream): Promise<string>; export declare function callOpenAIAPI(messages: Array<{ role: string; content: string; }>, openaiUrl: string, apiKey: string, model: string, streamMode: boolean): Promise<string>;