-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathaliases.go
331 lines (247 loc) · 11.8 KB
/
aliases.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package openai
import (
"github.com/openai/openai-go/internal/apierror"
"github.com/openai/openai-go/shared"
)
type Error = apierror.Error
// This is an alias to an internal type.
type ChatModel = shared.ChatModel
// This is an alias to an internal value.
const ChatModelO3Mini = shared.ChatModelO3Mini
// This is an alias to an internal value.
const ChatModelO3Mini2025_01_31 = shared.ChatModelO3Mini2025_01_31
// This is an alias to an internal value.
const ChatModelO1 = shared.ChatModelO1
// This is an alias to an internal value.
const ChatModelO1_2024_12_17 = shared.ChatModelO1_2024_12_17
// This is an alias to an internal value.
const ChatModelO1Preview = shared.ChatModelO1Preview
// This is an alias to an internal value.
const ChatModelO1Preview2024_09_12 = shared.ChatModelO1Preview2024_09_12
// This is an alias to an internal value.
const ChatModelO1Mini = shared.ChatModelO1Mini
// This is an alias to an internal value.
const ChatModelO1Mini2024_09_12 = shared.ChatModelO1Mini2024_09_12
// This is an alias to an internal value.
const ChatModelGPT4o = shared.ChatModelGPT4o
// This is an alias to an internal value.
const ChatModelGPT4o2024_11_20 = shared.ChatModelGPT4o2024_11_20
// This is an alias to an internal value.
const ChatModelGPT4o2024_08_06 = shared.ChatModelGPT4o2024_08_06
// This is an alias to an internal value.
const ChatModelGPT4o2024_05_13 = shared.ChatModelGPT4o2024_05_13
// This is an alias to an internal value.
const ChatModelGPT4oAudioPreview = shared.ChatModelGPT4oAudioPreview
// This is an alias to an internal value.
const ChatModelGPT4oAudioPreview2024_10_01 = shared.ChatModelGPT4oAudioPreview2024_10_01
// This is an alias to an internal value.
const ChatModelGPT4oAudioPreview2024_12_17 = shared.ChatModelGPT4oAudioPreview2024_12_17
// This is an alias to an internal value.
const ChatModelGPT4oMiniAudioPreview = shared.ChatModelGPT4oMiniAudioPreview
// This is an alias to an internal value.
const ChatModelGPT4oMiniAudioPreview2024_12_17 = shared.ChatModelGPT4oMiniAudioPreview2024_12_17
// This is an alias to an internal value.
const ChatModelGPT4oSearchPreview = shared.ChatModelGPT4oSearchPreview
// This is an alias to an internal value.
const ChatModelGPT4oMiniSearchPreview = shared.ChatModelGPT4oMiniSearchPreview
// This is an alias to an internal value.
const ChatModelGPT4oSearchPreview2025_03_11 = shared.ChatModelGPT4oSearchPreview2025_03_11
// This is an alias to an internal value.
const ChatModelGPT4oMiniSearchPreview2025_03_11 = shared.ChatModelGPT4oMiniSearchPreview2025_03_11
// This is an alias to an internal value.
const ChatModelChatgpt4oLatest = shared.ChatModelChatgpt4oLatest
// This is an alias to an internal value.
const ChatModelGPT4oMini = shared.ChatModelGPT4oMini
// This is an alias to an internal value.
const ChatModelGPT4oMini2024_07_18 = shared.ChatModelGPT4oMini2024_07_18
// This is an alias to an internal value.
const ChatModelGPT4Turbo = shared.ChatModelGPT4Turbo
// This is an alias to an internal value.
const ChatModelGPT4Turbo2024_04_09 = shared.ChatModelGPT4Turbo2024_04_09
// This is an alias to an internal value.
const ChatModelGPT4_0125Preview = shared.ChatModelGPT4_0125Preview
// This is an alias to an internal value.
const ChatModelGPT4TurboPreview = shared.ChatModelGPT4TurboPreview
// This is an alias to an internal value.
const ChatModelGPT4_1106Preview = shared.ChatModelGPT4_1106Preview
// This is an alias to an internal value.
const ChatModelGPT4VisionPreview = shared.ChatModelGPT4VisionPreview
// This is an alias to an internal value.
const ChatModelGPT4 = shared.ChatModelGPT4
// This is an alias to an internal value.
const ChatModelGPT4_0314 = shared.ChatModelGPT4_0314
// This is an alias to an internal value.
const ChatModelGPT4_0613 = shared.ChatModelGPT4_0613
// This is an alias to an internal value.
const ChatModelGPT4_32k = shared.ChatModelGPT4_32k
// This is an alias to an internal value.
const ChatModelGPT4_32k0314 = shared.ChatModelGPT4_32k0314
// This is an alias to an internal value.
const ChatModelGPT4_32k0613 = shared.ChatModelGPT4_32k0613
// This is an alias to an internal value.
const ChatModelGPT3_5Turbo = shared.ChatModelGPT3_5Turbo
// This is an alias to an internal value.
const ChatModelGPT3_5Turbo16k = shared.ChatModelGPT3_5Turbo16k
// This is an alias to an internal value.
const ChatModelGPT3_5Turbo0301 = shared.ChatModelGPT3_5Turbo0301
// This is an alias to an internal value.
const ChatModelGPT3_5Turbo0613 = shared.ChatModelGPT3_5Turbo0613
// This is an alias to an internal value.
const ChatModelGPT3_5Turbo1106 = shared.ChatModelGPT3_5Turbo1106
// This is an alias to an internal value.
const ChatModelGPT3_5Turbo0125 = shared.ChatModelGPT3_5Turbo0125
// This is an alias to an internal value.
const ChatModelGPT3_5Turbo16k0613 = shared.ChatModelGPT3_5Turbo16k0613
// A filter used to compare a specified attribute key to a given value using a
// defined comparison operation.
//
// This is an alias to an internal type.
type ComparisonFilterParam = shared.ComparisonFilterParam
// Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.
//
// - `eq`: equals
// - `ne`: not equal
// - `gt`: greater than
// - `gte`: greater than or equal
// - `lt`: less than
// - `lte`: less than or equal
//
// This is an alias to an internal type.
type ComparisonFilterType = shared.ComparisonFilterType
// This is an alias to an internal value.
const ComparisonFilterTypeEq = shared.ComparisonFilterTypeEq
// This is an alias to an internal value.
const ComparisonFilterTypeNe = shared.ComparisonFilterTypeNe
// This is an alias to an internal value.
const ComparisonFilterTypeGt = shared.ComparisonFilterTypeGt
// This is an alias to an internal value.
const ComparisonFilterTypeGte = shared.ComparisonFilterTypeGte
// This is an alias to an internal value.
const ComparisonFilterTypeLt = shared.ComparisonFilterTypeLt
// This is an alias to an internal value.
const ComparisonFilterTypeLte = shared.ComparisonFilterTypeLte
// The value to compare against the attribute key; supports string, number, or
// boolean types.
//
// This is an alias to an internal type.
type ComparisonFilterValueUnionParam = shared.ComparisonFilterValueUnionParam
// Combine multiple filters using `and` or `or`.
//
// This is an alias to an internal type.
type CompoundFilterParam = shared.CompoundFilterParam
// Type of operation: `and` or `or`.
//
// This is an alias to an internal type.
type CompoundFilterType = shared.CompoundFilterType
// This is an alias to an internal value.
const CompoundFilterTypeAnd = shared.CompoundFilterTypeAnd
// This is an alias to an internal value.
const CompoundFilterTypeOr = shared.CompoundFilterTypeOr
// This is an alias to an internal type.
type ErrorObject = shared.ErrorObject
// This is an alias to an internal type.
type FunctionDefinition = shared.FunctionDefinition
// This is an alias to an internal type.
type FunctionDefinitionParam = shared.FunctionDefinitionParam
// The parameters the functions accepts, described as a JSON Schema object. See the
// [guide](https://platform.openai.com/docs/guides/function-calling) for examples,
// and the
// [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
// documentation about the format.
//
// Omitting `parameters` defines a function with an empty parameter list.
//
// This is an alias to an internal type.
type FunctionParameters = shared.FunctionParameters
// Set of 16 key-value pairs that can be attached to an object. This can be useful
// for storing additional information about the object in a structured format, and
// querying for objects via API or the dashboard.
//
// Keys are strings with a maximum length of 64 characters. Values are strings with
// a maximum length of 512 characters.
//
// This is an alias to an internal type.
type Metadata = shared.Metadata
// Set of 16 key-value pairs that can be attached to an object. This can be useful
// for storing additional information about the object in a structured format, and
// querying for objects via API or the dashboard.
//
// Keys are strings with a maximum length of 64 characters. Values are strings with
// a maximum length of 512 characters.
//
// This is an alias to an internal type.
type MetadataParam = shared.MetadataParam
// **o-series models only**
//
// Constrains effort on reasoning for
// [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
// supported values are `low`, `medium`, and `high`. Reducing reasoning effort can
// result in faster responses and fewer tokens used on reasoning in a response.
//
// This is an alias to an internal type.
type ReasoningEffort = shared.ReasoningEffort
// This is an alias to an internal value.
const ReasoningEffortLow = shared.ReasoningEffortLow
// This is an alias to an internal value.
const ReasoningEffortMedium = shared.ReasoningEffortMedium
// This is an alias to an internal value.
const ReasoningEffortHigh = shared.ReasoningEffortHigh
// JSON object response format. An older method of generating JSON responses. Using
// `json_schema` is recommended for models that support it. Note that the model
// will not generate JSON without a system or user message instructing it to do so.
//
// This is an alias to an internal type.
type ResponseFormatJSONObject = shared.ResponseFormatJSONObject
// The type of response format being defined. Always `json_object`.
//
// This is an alias to an internal type.
type ResponseFormatJSONObjectType = shared.ResponseFormatJSONObjectType
// This is an alias to an internal value.
const ResponseFormatJSONObjectTypeJSONObject = shared.ResponseFormatJSONObjectTypeJSONObject
// JSON object response format. An older method of generating JSON responses. Using
// `json_schema` is recommended for models that support it. Note that the model
// will not generate JSON without a system or user message instructing it to do so.
//
// This is an alias to an internal type.
type ResponseFormatJSONObjectParam = shared.ResponseFormatJSONObjectParam
// JSON Schema response format. Used to generate structured JSON responses. Learn
// more about
// [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).
//
// This is an alias to an internal type.
type ResponseFormatJSONSchema = shared.ResponseFormatJSONSchema
// Structured Outputs configuration options, including a JSON Schema.
//
// This is an alias to an internal type.
type ResponseFormatJSONSchemaJSONSchema = shared.ResponseFormatJSONSchemaJSONSchema
// The type of response format being defined. Always `json_schema`.
//
// This is an alias to an internal type.
type ResponseFormatJSONSchemaType = shared.ResponseFormatJSONSchemaType
// This is an alias to an internal value.
const ResponseFormatJSONSchemaTypeJSONSchema = shared.ResponseFormatJSONSchemaTypeJSONSchema
// JSON Schema response format. Used to generate structured JSON responses. Learn
// more about
// [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).
//
// This is an alias to an internal type.
type ResponseFormatJSONSchemaParam = shared.ResponseFormatJSONSchemaParam
// Structured Outputs configuration options, including a JSON Schema.
//
// This is an alias to an internal type.
type ResponseFormatJSONSchemaJSONSchemaParam = shared.ResponseFormatJSONSchemaJSONSchemaParam
// Default response format. Used to generate text responses.
//
// This is an alias to an internal type.
type ResponseFormatText = shared.ResponseFormatText
// The type of response format being defined. Always `text`.
//
// This is an alias to an internal type.
type ResponseFormatTextType = shared.ResponseFormatTextType
// This is an alias to an internal value.
const ResponseFormatTextTypeText = shared.ResponseFormatTextTypeText
// Default response format. Used to generate text responses.
//
// This is an alias to an internal type.
type ResponseFormatTextParam = shared.ResponseFormatTextParam