export enum FinishReason { STOP = 'stop', LENGTH = 'length', } export interface ChoiceBase { index: number; } export interface FinishableChoiceBase extends ChoiceBase { finish_reason: FinishReason | null; } export type DataEventId = string; export type Timestamp = number; export interface CreatedResource { created: Timestamp; } export enum ApiVersion { V1 = 'v1', } export interface Configuration { organizationId?: string; apiVersion: ApiVersion; apiKey: string; baseUrl?: string; } export enum ResponseObjectType { LIST = 'list', } export const DEFAULT_BASE_URL = 'https://api.openai.com' as const;