You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client-sdks/stainless/openapi.yml
+68-4Lines changed: 68 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1167,7 +1167,7 @@ paths:
1167
1167
get:
1168
1168
responses:
1169
1169
'200':
1170
-
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or `x-goog-api-key` header for Google format.
1170
+
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or any Google SDK header (`x-goog-api-key`, `x-goog-user-project`, `x-goog-api-client`) for Google format.
1171
1171
content:
1172
1172
application/json:
1173
1173
schema:
@@ -1193,9 +1193,41 @@ paths:
1193
1193
tags:
1194
1194
- Models
1195
1195
summary: List models.
1196
-
description: List models. Returns OpenAI, Anthropic, or Google response format based on SDK headers.
1196
+
description: List models. Returns OpenAI, Anthropic, or Google response format based on SDK detection headers.
1197
1197
operationId: list_models_v1_models_get
1198
1198
parameters:
1199
+
- name: before_id
1200
+
in: query
1201
+
required: false
1202
+
schema:
1203
+
anyOf:
1204
+
- type: string
1205
+
- type: 'null'
1206
+
description: Return models before this model ID (Anthropic SDK format only).
1207
+
title: Before Id
1208
+
description: Return models before this model ID (Anthropic SDK format only).
1209
+
- name: after_id
1210
+
in: query
1211
+
required: false
1212
+
schema:
1213
+
anyOf:
1214
+
- type: string
1215
+
- type: 'null'
1216
+
description: Return models after this model ID (Anthropic SDK format only).
1217
+
title: After Id
1218
+
description: Return models after this model ID (Anthropic SDK format only).
1219
+
- name: limit
1220
+
in: query
1221
+
required: false
1222
+
schema:
1223
+
anyOf:
1224
+
- type: integer
1225
+
maximum: 1000
1226
+
minimum: 1
1227
+
- type: 'null'
1228
+
description: Maximum number of models to return (Anthropic SDK format only).
1229
+
title: Limit
1230
+
description: Maximum number of models to return (Anthropic SDK format only).
1199
1231
- name: anthropic-version
1200
1232
in: header
1201
1233
required: false
@@ -1212,6 +1244,22 @@ paths:
1212
1244
- type: string
1213
1245
- type: 'null'
1214
1246
title: X-Goog-Api-Key
1247
+
- name: x-goog-user-project
1248
+
in: header
1249
+
required: false
1250
+
schema:
1251
+
anyOf:
1252
+
- type: string
1253
+
- type: 'null'
1254
+
title: X-Goog-User-Project
1255
+
- name: x-goog-api-client
1256
+
in: header
1257
+
required: false
1258
+
schema:
1259
+
anyOf:
1260
+
- type: string
1261
+
- type: 'null'
1262
+
title: X-Goog-Api-Client
1215
1263
x-codeSamples:
1216
1264
- lang: Python
1217
1265
label: OpenAI
@@ -1227,7 +1275,7 @@ paths:
1227
1275
get:
1228
1276
responses:
1229
1277
'200':
1230
-
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or `x-goog-api-key` header for Google format.
1278
+
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or any Google SDK header (`x-goog-api-key`, `x-goog-user-project`, `x-goog-api-client`) for Google format.
1231
1279
content:
1232
1280
application/json:
1233
1281
schema:
@@ -1253,7 +1301,7 @@ paths:
1253
1301
tags:
1254
1302
- Models
1255
1303
summary: Get a model by its identifier.
1256
-
description: Get a model by its identifier. Returns OpenAI, Anthropic, or Google response format based on SDK headers.
1304
+
description: Get a model by its identifier. Returns OpenAI, Anthropic, or Google response format based on SDK detection headers.
Copy file name to clipboardExpand all lines: docs/static/ogx-spec.yaml
+68-4Lines changed: 68 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1165,7 +1165,7 @@ paths:
1165
1165
get:
1166
1166
responses:
1167
1167
'200':
1168
-
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or `x-goog-api-key` header for Google format.
1168
+
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or any Google SDK header (`x-goog-api-key`, `x-goog-user-project`, `x-goog-api-client`) for Google format.
1169
1169
content:
1170
1170
application/json:
1171
1171
schema:
@@ -1191,9 +1191,41 @@ paths:
1191
1191
tags:
1192
1192
- Models
1193
1193
summary: List models.
1194
-
description: List models. Returns OpenAI, Anthropic, or Google response format based on SDK headers.
1194
+
description: List models. Returns OpenAI, Anthropic, or Google response format based on SDK detection headers.
1195
1195
operationId: list_models_v1_models_get
1196
1196
parameters:
1197
+
- name: before_id
1198
+
in: query
1199
+
required: false
1200
+
schema:
1201
+
anyOf:
1202
+
- type: string
1203
+
- type: 'null'
1204
+
description: Return models before this model ID (Anthropic SDK format only).
1205
+
title: Before Id
1206
+
description: Return models before this model ID (Anthropic SDK format only).
1207
+
- name: after_id
1208
+
in: query
1209
+
required: false
1210
+
schema:
1211
+
anyOf:
1212
+
- type: string
1213
+
- type: 'null'
1214
+
description: Return models after this model ID (Anthropic SDK format only).
1215
+
title: After Id
1216
+
description: Return models after this model ID (Anthropic SDK format only).
1217
+
- name: limit
1218
+
in: query
1219
+
required: false
1220
+
schema:
1221
+
anyOf:
1222
+
- type: integer
1223
+
maximum: 1000
1224
+
minimum: 1
1225
+
- type: 'null'
1226
+
description: Maximum number of models to return (Anthropic SDK format only).
1227
+
title: Limit
1228
+
description: Maximum number of models to return (Anthropic SDK format only).
1197
1229
- name: anthropic-version
1198
1230
in: header
1199
1231
required: false
@@ -1210,6 +1242,22 @@ paths:
1210
1242
- type: string
1211
1243
- type: 'null'
1212
1244
title: X-Goog-Api-Key
1245
+
- name: x-goog-user-project
1246
+
in: header
1247
+
required: false
1248
+
schema:
1249
+
anyOf:
1250
+
- type: string
1251
+
- type: 'null'
1252
+
title: X-Goog-User-Project
1253
+
- name: x-goog-api-client
1254
+
in: header
1255
+
required: false
1256
+
schema:
1257
+
anyOf:
1258
+
- type: string
1259
+
- type: 'null'
1260
+
title: X-Goog-Api-Client
1213
1261
x-codeSamples:
1214
1262
- lang: Python
1215
1263
label: OpenAI
@@ -1225,7 +1273,7 @@ paths:
1225
1273
get:
1226
1274
responses:
1227
1275
'200':
1228
-
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or `x-goog-api-key` header for Google format.
1276
+
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or any Google SDK header (`x-goog-api-key`, `x-goog-user-project`, `x-goog-api-client`) for Google format.
1229
1277
content:
1230
1278
application/json:
1231
1279
schema:
@@ -1251,7 +1299,7 @@ paths:
1251
1299
tags:
1252
1300
- Models
1253
1301
summary: Get a model by its identifier.
1254
-
description: Get a model by its identifier. Returns OpenAI, Anthropic, or Google response format based on SDK headers.
1302
+
description: Get a model by its identifier. Returns OpenAI, Anthropic, or Google response format based on SDK detection headers.
Copy file name to clipboardExpand all lines: docs/static/stainless-ogx-spec.yaml
+68-4Lines changed: 68 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1167,7 +1167,7 @@ paths:
1167
1167
get:
1168
1168
responses:
1169
1169
'200':
1170
-
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or `x-goog-api-key` header for Google format.
1170
+
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or any Google SDK header (`x-goog-api-key`, `x-goog-user-project`, `x-goog-api-client`) for Google format.
1171
1171
content:
1172
1172
application/json:
1173
1173
schema:
@@ -1193,9 +1193,41 @@ paths:
1193
1193
tags:
1194
1194
- Models
1195
1195
summary: List models.
1196
-
description: List models. Returns OpenAI, Anthropic, or Google response format based on SDK headers.
1196
+
description: List models. Returns OpenAI, Anthropic, or Google response format based on SDK detection headers.
1197
1197
operationId: list_models_v1_models_get
1198
1198
parameters:
1199
+
- name: before_id
1200
+
in: query
1201
+
required: false
1202
+
schema:
1203
+
anyOf:
1204
+
- type: string
1205
+
- type: 'null'
1206
+
description: Return models before this model ID (Anthropic SDK format only).
1207
+
title: Before Id
1208
+
description: Return models before this model ID (Anthropic SDK format only).
1209
+
- name: after_id
1210
+
in: query
1211
+
required: false
1212
+
schema:
1213
+
anyOf:
1214
+
- type: string
1215
+
- type: 'null'
1216
+
description: Return models after this model ID (Anthropic SDK format only).
1217
+
title: After Id
1218
+
description: Return models after this model ID (Anthropic SDK format only).
1219
+
- name: limit
1220
+
in: query
1221
+
required: false
1222
+
schema:
1223
+
anyOf:
1224
+
- type: integer
1225
+
maximum: 1000
1226
+
minimum: 1
1227
+
- type: 'null'
1228
+
description: Maximum number of models to return (Anthropic SDK format only).
1229
+
title: Limit
1230
+
description: Maximum number of models to return (Anthropic SDK format only).
1199
1231
- name: anthropic-version
1200
1232
in: header
1201
1233
required: false
@@ -1212,6 +1244,22 @@ paths:
1212
1244
- type: string
1213
1245
- type: 'null'
1214
1246
title: X-Goog-Api-Key
1247
+
- name: x-goog-user-project
1248
+
in: header
1249
+
required: false
1250
+
schema:
1251
+
anyOf:
1252
+
- type: string
1253
+
- type: 'null'
1254
+
title: X-Goog-User-Project
1255
+
- name: x-goog-api-client
1256
+
in: header
1257
+
required: false
1258
+
schema:
1259
+
anyOf:
1260
+
- type: string
1261
+
- type: 'null'
1262
+
title: X-Goog-Api-Client
1215
1263
x-codeSamples:
1216
1264
- lang: Python
1217
1265
label: OpenAI
@@ -1227,7 +1275,7 @@ paths:
1227
1275
get:
1228
1276
responses:
1229
1277
'200':
1230
-
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or `x-goog-api-key` header for Google format.
1278
+
description: Returns OpenAI format by default. Send `anthropic-version` header for Anthropic format, or any Google SDK header (`x-goog-api-key`, `x-goog-user-project`, `x-goog-api-client`) for Google format.
1231
1279
content:
1232
1280
application/json:
1233
1281
schema:
@@ -1253,7 +1301,7 @@ paths:
1253
1301
tags:
1254
1302
- Models
1255
1303
summary: Get a model by its identifier.
1256
-
description: Get a model by its identifier. Returns OpenAI, Anthropic, or Google response format based on SDK headers.
1304
+
description: Get a model by its identifier. Returns OpenAI, Anthropic, or Google response format based on SDK detection headers.
0 commit comments