UNPKG

@gravityai-dev/openai

Version:

OpenAI integration for Gravity workflow system

19 lines 544 B
/** * OpenAI completion service * Handles all OpenAI API interactions with proper credential management */ import { OpenAIConfig } from "../util/types"; type CredentialContext = any; /** * Generate a completion using OpenAI's chat API */ export declare function queryChatGPT(config: OpenAIConfig, context: CredentialContext, nodeLogger?: any, executionContext?: { workflowId: string; executionId: string; nodeId: string; }): Promise<{ text: string; usage?: any; }>; export {}; //# sourceMappingURL=queryChatGPT.d.ts.map