UNPKG

graphlit-client

Version:
31 lines (30 loc) 1.2 kB
/** * Get the actual model name for a given specification * @param specification - The Graphlit specification object * @returns The SDK-compatible model name */ export declare function getModelName(specification: any): string | undefined; /** * Check if a service type supports streaming * @param serviceType - The model service type * @returns True if streaming is supported */ export declare function isStreamingSupported(serviceType?: string): boolean; /** * Get the service type from specification * @param specification - The specification object * @returns The service type string */ export declare function getServiceType(specification: any): string | undefined; /** * Get the model enum value from specification * @param specification - The specification object * @returns The model enum value */ export declare function getModelEnum(specification: any): string | undefined; /** * Check whether an OpenAI specification should use the Responses API path. * Eligible models are GPT-5.4 and newer. */ export declare function isOpenAIResponsesEligibleModel(specification: any): boolean; export declare const shouldUseOpenAIResponsesModel: typeof isOpenAIResponsesEligibleModel;