@@ -57,7 +57,7 @@ export interface ChatCompletion {
5757
5858 usage ?: ChatCompletionUsage | null ;
5959
60- warnings ?: Array < ChatCompletion . Warning > ;
60+ warnings ?: ChatCompletionWarnings ;
6161}
6262
6363export namespace ChatCompletion {
@@ -104,10 +104,6 @@ export namespace ChatCompletionAssistantMessageParam {
104104
105105 name : string ;
106106 }
107-
108- export interface Warning {
109- message : string ;
110- }
111107}
112108
113109export interface ChatCompletionChunk {
@@ -125,7 +121,7 @@ export interface ChatCompletionChunk {
125121
126122 usage ?: ChatCompletionUsage | null ;
127123
128- warnings ?: Array < ChatCompletionChunk . Warning > ;
124+ warnings ?: ChatCompletionWarnings ;
129125}
130126
131127export namespace ChatCompletionChunk {
@@ -168,10 +164,6 @@ export namespace ChatCompletionChunk {
168164 }
169165 }
170166 }
171-
172- export interface Warning {
173- message : string ;
174- }
175167}
176168
177169/**
@@ -302,6 +294,14 @@ export interface ChatCompletionUserMessageParam {
302294 name ?: string ;
303295}
304296
297+ export type ChatCompletionWarnings = Array < ChatCompletionWarnings . ChatCompletionWarningItem > ;
298+
299+ export namespace ChatCompletionWarnings {
300+ export interface ChatCompletionWarningItem {
301+ message : string ;
302+ }
303+ }
304+
305305export type CompletionCreateParams = CompletionCreateParamsNonStreaming | CompletionCreateParamsStreaming ;
306306
307307export interface CompletionCreateParamsBase {
@@ -628,7 +628,7 @@ export declare namespace Completions {
628628 type ChatCompletionStructuredMessageText as ChatCompletionStructuredMessageText ,
629629 type ChatCompletionStructuredMessageVideoURL as ChatCompletionStructuredMessageVideoURL ,
630630 type ChatCompletionUsage as ChatCompletionUsage ,
631- type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam ,
631+ type ChatCompletionWarnings as ChatCompletionWarnings ,
632632 type CompletionCreateParams as CompletionCreateParams ,
633633 type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming ,
634634 type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming ,
0 commit comments