@reverbia/sdk 1.0.0-next.20251113133026 → 1.0.0-next.20251113144625

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/index.cjs +857 -0
  2. package/dist/index.d.mts +437 -0
  3. package/dist/index.d.ts +437 -0
  4. package/dist/index.mjs +829 -0
  5. package/package.json +10 -10
  6. package/dist/cjs/client/client/client.gen.d.ts +0 -2
  7. package/dist/cjs/client/client/client.gen.js +0 -203
  8. package/dist/cjs/client/client/index.d.ts +0 -8
  9. package/dist/cjs/client/client/index.js +0 -16
  10. package/dist/cjs/client/client/types.gen.d.ts +0 -99
  11. package/dist/cjs/client/client/types.gen.js +0 -3
  12. package/dist/cjs/client/client/utils.gen.d.ts +0 -40
  13. package/dist/cjs/client/client/utils.gen.js +0 -314
  14. package/dist/cjs/client/client.gen.d.ts +0 -12
  15. package/dist/cjs/client/client.gen.js +0 -6
  16. package/dist/cjs/client/core/auth.gen.d.ts +0 -18
  17. package/dist/cjs/client/core/auth.gen.js +0 -18
  18. package/dist/cjs/client/core/bodySerializer.gen.d.ts +0 -25
  19. package/dist/cjs/client/core/bodySerializer.gen.js +0 -60
  20. package/dist/cjs/client/core/params.gen.d.ts +0 -43
  21. package/dist/cjs/client/core/params.gen.js +0 -104
  22. package/dist/cjs/client/core/pathSerializer.gen.d.ts +0 -33
  23. package/dist/cjs/client/core/pathSerializer.gen.js +0 -123
  24. package/dist/cjs/client/core/queryKeySerializer.gen.d.ts +0 -18
  25. package/dist/cjs/client/core/queryKeySerializer.gen.js +0 -105
  26. package/dist/cjs/client/core/serverSentEvents.gen.d.ts +0 -71
  27. package/dist/cjs/client/core/serverSentEvents.gen.js +0 -139
  28. package/dist/cjs/client/core/types.gen.d.ts +0 -78
  29. package/dist/cjs/client/core/types.gen.js +0 -3
  30. package/dist/cjs/client/core/utils.gen.d.ts +0 -19
  31. package/dist/cjs/client/core/utils.gen.js +0 -93
  32. package/dist/cjs/client/index.d.ts +0 -2
  33. package/dist/cjs/client/index.js +0 -18
  34. package/dist/cjs/client/sdk.gen.d.ts +0 -27
  35. package/dist/cjs/client/sdk.gen.js +0 -33
  36. package/dist/cjs/client/types.gen.d.ts +0 -120
  37. package/dist/cjs/client/types.gen.js +0 -3
  38. package/dist/esm/client/client/client.gen.d.ts +0 -2
  39. package/dist/esm/client/client/client.gen.js +0 -199
  40. package/dist/esm/client/client/index.d.ts +0 -8
  41. package/dist/esm/client/client/index.js +0 -6
  42. package/dist/esm/client/client/types.gen.d.ts +0 -99
  43. package/dist/esm/client/client/types.gen.js +0 -2
  44. package/dist/esm/client/client/utils.gen.d.ts +0 -40
  45. package/dist/esm/client/client/utils.gen.js +0 -302
  46. package/dist/esm/client/client.gen.d.ts +0 -12
  47. package/dist/esm/client/client.gen.js +0 -3
  48. package/dist/esm/client/core/auth.gen.d.ts +0 -18
  49. package/dist/esm/client/core/auth.gen.js +0 -14
  50. package/dist/esm/client/core/bodySerializer.gen.d.ts +0 -25
  51. package/dist/esm/client/core/bodySerializer.gen.js +0 -57
  52. package/dist/esm/client/core/params.gen.d.ts +0 -43
  53. package/dist/esm/client/core/params.gen.js +0 -100
  54. package/dist/esm/client/core/pathSerializer.gen.d.ts +0 -33
  55. package/dist/esm/client/core/pathSerializer.gen.js +0 -114
  56. package/dist/esm/client/core/queryKeySerializer.gen.d.ts +0 -18
  57. package/dist/esm/client/core/queryKeySerializer.gen.js +0 -99
  58. package/dist/esm/client/core/serverSentEvents.gen.d.ts +0 -71
  59. package/dist/esm/client/core/serverSentEvents.gen.js +0 -135
  60. package/dist/esm/client/core/types.gen.d.ts +0 -78
  61. package/dist/esm/client/core/types.gen.js +0 -2
  62. package/dist/esm/client/core/utils.gen.d.ts +0 -19
  63. package/dist/esm/client/core/utils.gen.js +0 -87
  64. package/dist/esm/client/index.d.ts +0 -2
  65. package/dist/esm/client/index.js +0 -2
  66. package/dist/esm/client/sdk.gen.d.ts +0 -27
  67. package/dist/esm/client/sdk.gen.js +0 -28
  68. package/dist/esm/client/types.gen.d.ts +0 -120
  69. package/dist/esm/client/types.gen.js +0 -2
  70. package/dist/types/client/client/client.gen.d.ts +0 -2
  71. package/dist/types/client/client/index.d.ts +0 -8
  72. package/dist/types/client/client/types.gen.d.ts +0 -99
  73. package/dist/types/client/client/utils.gen.d.ts +0 -40
  74. package/dist/types/client/client.gen.d.ts +0 -12
  75. package/dist/types/client/core/auth.gen.d.ts +0 -18
  76. package/dist/types/client/core/bodySerializer.gen.d.ts +0 -25
  77. package/dist/types/client/core/params.gen.d.ts +0 -43
  78. package/dist/types/client/core/pathSerializer.gen.d.ts +0 -33
  79. package/dist/types/client/core/queryKeySerializer.gen.d.ts +0 -18
  80. package/dist/types/client/core/serverSentEvents.gen.d.ts +0 -71
  81. package/dist/types/client/core/types.gen.d.ts +0 -78
  82. package/dist/types/client/core/utils.gen.d.ts +0 -19
  83. package/dist/types/client/index.d.ts +0 -2
  84. package/dist/types/client/sdk.gen.d.ts +0 -27
  85. package/dist/types/client/types.gen.d.ts +0 -120
@@ -0,0 +1,437 @@
1
+ type ClientOptions$1 = {
2
+ baseUrl: `${string}://${string}` | (string & {});
3
+ };
4
+ type HandlersHealthResponse = {
5
+ /**
6
+ * Status indicates the service health status
7
+ */
8
+ status?: string;
9
+ /**
10
+ * Timestamp is the Unix timestamp of the response
11
+ */
12
+ timestamp?: number;
13
+ /**
14
+ * Version is the current API version
15
+ */
16
+ version?: string;
17
+ };
18
+ type LlmapiChatCompletionRequest = {
19
+ /**
20
+ * Messages is the conversation history
21
+ */
22
+ messages?: Array<LlmapiMessage>;
23
+ /**
24
+ * Model is the model identifier
25
+ */
26
+ model?: string;
27
+ /**
28
+ * Stream indicates if response should be streamed
29
+ */
30
+ stream?: boolean;
31
+ };
32
+ type LlmapiChatCompletionResponse = {
33
+ /**
34
+ * Choices contains the completion choices
35
+ */
36
+ choices?: Array<LlmapiChoice>;
37
+ /**
38
+ * ID is the completion ID
39
+ */
40
+ id?: string;
41
+ /**
42
+ * Model is the model used
43
+ */
44
+ model?: string;
45
+ };
46
+ type LlmapiChoice = {
47
+ /**
48
+ * FinishReason indicates why the completion stopped
49
+ */
50
+ finish_reason?: string;
51
+ /**
52
+ * Index is the choice index
53
+ */
54
+ index?: number;
55
+ message?: LlmapiMessage;
56
+ };
57
+ /**
58
+ * Message is the generated message
59
+ */
60
+ type LlmapiMessage = {
61
+ /**
62
+ * Content is the message content
63
+ */
64
+ content?: string;
65
+ role?: LlmapiRole;
66
+ };
67
+ /**
68
+ * Role is the message role (system, user, assistant)
69
+ */
70
+ type LlmapiRole = string;
71
+ type ResponseErrorResponse = {
72
+ error?: string;
73
+ };
74
+ type PostApiV1ChatCompletionsData = {
75
+ /**
76
+ * Chat completion request
77
+ */
78
+ body: LlmapiChatCompletionRequest;
79
+ path?: never;
80
+ query?: never;
81
+ url: '/api/v1/chat/completions';
82
+ };
83
+ type PostApiV1ChatCompletionsErrors = {
84
+ /**
85
+ * Bad Request
86
+ */
87
+ 400: ResponseErrorResponse;
88
+ /**
89
+ * Internal Server Error
90
+ */
91
+ 500: ResponseErrorResponse;
92
+ };
93
+ type PostApiV1ChatCompletionsError = PostApiV1ChatCompletionsErrors[keyof PostApiV1ChatCompletionsErrors];
94
+ type PostApiV1ChatCompletionsResponses = {
95
+ /**
96
+ * OK
97
+ */
98
+ 200: LlmapiChatCompletionResponse;
99
+ };
100
+ type PostApiV1ChatCompletionsResponse = PostApiV1ChatCompletionsResponses[keyof PostApiV1ChatCompletionsResponses];
101
+ type GetHealthData = {
102
+ body?: never;
103
+ path?: never;
104
+ query?: never;
105
+ url: '/health';
106
+ };
107
+ type GetHealthErrors = {
108
+ /**
109
+ * Internal Server Error
110
+ */
111
+ 500: ResponseErrorResponse;
112
+ };
113
+ type GetHealthError = GetHealthErrors[keyof GetHealthErrors];
114
+ type GetHealthResponses = {
115
+ /**
116
+ * OK
117
+ */
118
+ 200: HandlersHealthResponse;
119
+ };
120
+ type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
121
+
122
+ type AuthToken = string | undefined;
123
+ interface Auth {
124
+ /**
125
+ * Which part of the request do we use to send the auth?
126
+ *
127
+ * @default 'header'
128
+ */
129
+ in?: 'header' | 'query' | 'cookie';
130
+ /**
131
+ * Header or query parameter name.
132
+ *
133
+ * @default 'Authorization'
134
+ */
135
+ name?: string;
136
+ scheme?: 'basic' | 'bearer';
137
+ type: 'apiKey' | 'http';
138
+ }
139
+
140
+ interface SerializerOptions<T> {
141
+ /**
142
+ * @default true
143
+ */
144
+ explode: boolean;
145
+ style: T;
146
+ }
147
+ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
148
+ type ObjectStyle = 'form' | 'deepObject';
149
+
150
+ type QuerySerializer = (query: Record<string, unknown>) => string;
151
+ type BodySerializer = (body: any) => any;
152
+ type QuerySerializerOptionsObject = {
153
+ allowReserved?: boolean;
154
+ array?: Partial<SerializerOptions<ArrayStyle>>;
155
+ object?: Partial<SerializerOptions<ObjectStyle>>;
156
+ };
157
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
158
+ /**
159
+ * Per-parameter serialization overrides. When provided, these settings
160
+ * override the global array/object settings for specific parameter names.
161
+ */
162
+ parameters?: Record<string, QuerySerializerOptionsObject>;
163
+ };
164
+
165
+ type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
166
+ type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
167
+ /**
168
+ * Returns the final request URL.
169
+ */
170
+ buildUrl: BuildUrlFn;
171
+ getConfig: () => Config;
172
+ request: RequestFn;
173
+ setConfig: (config: Config) => Config;
174
+ } & {
175
+ [K in HttpMethod]: MethodFn;
176
+ } & ([SseFn] extends [never] ? {
177
+ sse?: never;
178
+ } : {
179
+ sse: {
180
+ [K in HttpMethod]: SseFn;
181
+ };
182
+ });
183
+ interface Config$1 {
184
+ /**
185
+ * Auth token or a function returning auth token. The resolved value will be
186
+ * added to the request payload as defined by its `security` array.
187
+ */
188
+ auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
189
+ /**
190
+ * A function for serializing request body parameter. By default,
191
+ * {@link JSON.stringify()} will be used.
192
+ */
193
+ bodySerializer?: BodySerializer | null;
194
+ /**
195
+ * An object containing any HTTP headers that you want to pre-populate your
196
+ * `Headers` object with.
197
+ *
198
+ * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
199
+ */
200
+ headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
201
+ /**
202
+ * The request method.
203
+ *
204
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
205
+ */
206
+ method?: Uppercase<HttpMethod>;
207
+ /**
208
+ * A function for serializing request query parameters. By default, arrays
209
+ * will be exploded in form style, objects will be exploded in deepObject
210
+ * style, and reserved characters are percent-encoded.
211
+ *
212
+ * This method will have no effect if the native `paramsSerializer()` Axios
213
+ * API function is used.
214
+ *
215
+ * {@link https://swagger.io/docs/specification/serialization/#query View examples}
216
+ */
217
+ querySerializer?: QuerySerializer | QuerySerializerOptions;
218
+ /**
219
+ * A function validating request data. This is useful if you want to ensure
220
+ * the request conforms to the desired shape, so it can be safely sent to
221
+ * the server.
222
+ */
223
+ requestValidator?: (data: unknown) => Promise<unknown>;
224
+ /**
225
+ * A function transforming response data before it's returned. This is useful
226
+ * for post-processing data, e.g. converting ISO strings into Date objects.
227
+ */
228
+ responseTransformer?: (data: unknown) => Promise<unknown>;
229
+ /**
230
+ * A function validating response data. This is useful if you want to ensure
231
+ * the response conforms to the desired shape, so it can be safely passed to
232
+ * the transformers and returned to the user.
233
+ */
234
+ responseValidator?: (data: unknown) => Promise<unknown>;
235
+ }
236
+
237
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
238
+ /**
239
+ * Fetch API implementation. You can use this option to provide a custom
240
+ * fetch instance.
241
+ *
242
+ * @default globalThis.fetch
243
+ */
244
+ fetch?: typeof fetch;
245
+ /**
246
+ * Implementing clients can call request interceptors inside this hook.
247
+ */
248
+ onRequest?: (url: string, init: RequestInit) => Promise<Request>;
249
+ /**
250
+ * Callback invoked when a network or parsing error occurs during streaming.
251
+ *
252
+ * This option applies only if the endpoint returns a stream of events.
253
+ *
254
+ * @param error The error that occurred.
255
+ */
256
+ onSseError?: (error: unknown) => void;
257
+ /**
258
+ * Callback invoked when an event is streamed from the server.
259
+ *
260
+ * This option applies only if the endpoint returns a stream of events.
261
+ *
262
+ * @param event Event streamed from the server.
263
+ * @returns Nothing (void).
264
+ */
265
+ onSseEvent?: (event: StreamEvent<TData>) => void;
266
+ serializedBody?: RequestInit['body'];
267
+ /**
268
+ * Default retry delay in milliseconds.
269
+ *
270
+ * This option applies only if the endpoint returns a stream of events.
271
+ *
272
+ * @default 3000
273
+ */
274
+ sseDefaultRetryDelay?: number;
275
+ /**
276
+ * Maximum number of retry attempts before giving up.
277
+ */
278
+ sseMaxRetryAttempts?: number;
279
+ /**
280
+ * Maximum retry delay in milliseconds.
281
+ *
282
+ * Applies only when exponential backoff is used.
283
+ *
284
+ * This option applies only if the endpoint returns a stream of events.
285
+ *
286
+ * @default 30000
287
+ */
288
+ sseMaxRetryDelay?: number;
289
+ /**
290
+ * Optional sleep function for retry backoff.
291
+ *
292
+ * Defaults to using `setTimeout`.
293
+ */
294
+ sseSleepFn?: (ms: number) => Promise<void>;
295
+ url: string;
296
+ };
297
+ interface StreamEvent<TData = unknown> {
298
+ data: TData;
299
+ event?: string;
300
+ id?: string;
301
+ retry?: number;
302
+ }
303
+ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
304
+ stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
305
+ };
306
+
307
+ type ErrInterceptor<Err, Res, Options> = (error: Err, response: Res, options: Options) => Err | Promise<Err>;
308
+ type ReqInterceptor<Options> = (options: Options) => void | Promise<void>;
309
+ type ResInterceptor<Res, Options> = (response: Res, options: Options) => Res | Promise<Res>;
310
+ declare class Interceptors<Interceptor> {
311
+ fns: Array<Interceptor | null>;
312
+ clear(): void;
313
+ eject(id: number | Interceptor): void;
314
+ exists(id: number | Interceptor): boolean;
315
+ getInterceptorIndex(id: number | Interceptor): number;
316
+ update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
317
+ use(fn: Interceptor): number;
318
+ }
319
+ interface Middleware<Res, Err, Options> {
320
+ error: Interceptors<ErrInterceptor<Err, Res, Options>>;
321
+ request: Interceptors<ReqInterceptor<Options>>;
322
+ response: Interceptors<ResInterceptor<Res, Options>>;
323
+ }
324
+
325
+ interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
326
+ /**
327
+ * Base URL for all requests made by this client.
328
+ */
329
+ baseUrl?: T['baseUrl'];
330
+ /**
331
+ * Fetch API implementation. You can use this option to provide a custom
332
+ * fetch instance.
333
+ *
334
+ * @default globalThis.fetch
335
+ */
336
+ fetch?: typeof fetch;
337
+ /**
338
+ * Return the response data parsed in a specified format. By default, `auto`
339
+ * will infer the appropriate method from the `Content-Type` response header.
340
+ * You can override this behavior with any of the {@link Body} methods.
341
+ * Select `stream` if you don't want to parse response data at all.
342
+ *
343
+ * @default 'auto'
344
+ */
345
+ parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
346
+ /**
347
+ * Throw an error instead of returning it in the response?
348
+ *
349
+ * @default false
350
+ */
351
+ throwOnError?: T['throwOnError'];
352
+ }
353
+ interface RequestOptions<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
354
+ throwOnError: ThrowOnError;
355
+ }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
356
+ /**
357
+ * Any body that you want to add to your request.
358
+ *
359
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
360
+ */
361
+ body?: unknown;
362
+ path?: Record<string, unknown>;
363
+ query?: Record<string, unknown>;
364
+ /**
365
+ * Security mechanism(s) to use for the request.
366
+ */
367
+ security?: ReadonlyArray<Auth>;
368
+ url: Url;
369
+ }
370
+ interface ResolvedRequestOptions<ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, ThrowOnError, Url> {
371
+ serializedBody?: string;
372
+ }
373
+ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean> = ThrowOnError extends true ? Promise<{
374
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
375
+ response: Response;
376
+ }> : Promise<({
377
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
378
+ error: undefined;
379
+ } | {
380
+ data: undefined;
381
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
382
+ }) & {
383
+ response: Response;
384
+ }>;
385
+ interface ClientOptions {
386
+ baseUrl?: string;
387
+ throwOnError?: boolean;
388
+ }
389
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
390
+ type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
391
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
392
+ type BuildUrlFn = <TData extends {
393
+ body?: unknown;
394
+ path?: Record<string, unknown>;
395
+ query?: Record<string, unknown>;
396
+ url: string;
397
+ }>(options: TData & Options$1<TData>) => string;
398
+ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
399
+ interceptors: Middleware<Response, unknown, ResolvedRequestOptions>;
400
+ };
401
+ interface TDataShape {
402
+ body?: unknown;
403
+ headers?: unknown;
404
+ path?: unknown;
405
+ query?: unknown;
406
+ url: string;
407
+ }
408
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
409
+ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys<RequestOptions<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
410
+
411
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
412
+ /**
413
+ * You can provide a client instance returned by `createClient()` instead of
414
+ * individual options. This might be also useful if you want to implement a
415
+ * custom client.
416
+ */
417
+ client?: Client;
418
+ /**
419
+ * You can pass arbitrary values through the `meta` object. This can be
420
+ * used to access values that aren't defined as part of the SDK function.
421
+ */
422
+ meta?: Record<string, unknown>;
423
+ };
424
+ /**
425
+ * Create chat completion
426
+ *
427
+ * Generates a chat completion using the configured gateway.
428
+ */
429
+ declare const postApiV1ChatCompletions: <ThrowOnError extends boolean = false>(options: Options<PostApiV1ChatCompletionsData, ThrowOnError>) => RequestResult<PostApiV1ChatCompletionsResponses, PostApiV1ChatCompletionsErrors, ThrowOnError>;
430
+ /**
431
+ * Health check
432
+ *
433
+ * Returns the current health status of the service.
434
+ */
435
+ declare const getHealth: <ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>) => RequestResult<GetHealthResponses, GetHealthErrors, ThrowOnError>;
436
+
437
+ export { type ClientOptions$1 as ClientOptions, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersHealthResponse, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChoice, type LlmapiMessage, type LlmapiRole, type Options, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type ResponseErrorResponse, getHealth, postApiV1ChatCompletions };