Skip to content

Commit f7098c2

Browse files
committed
add documentation for public endpoint /api/v1/ai-gateway/providers
1 parent 43ce43f commit f7098c2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

swagger.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,6 +2752,19 @@ paths:
27522752
description: No content
27532753
default:
27542754
$ref: '#/responses/error'
2755+
/ai-gateway/providers:
2756+
get:
2757+
responses:
2758+
'200':
2759+
description: The mapping of providers and supported models
2760+
schema:
2761+
type: object
2762+
properties:
2763+
providers:
2764+
additionalProperties:
2765+
type: object
2766+
$ref: '#/definitions/providerDefinition'
2767+
27552768
definitions:
27562769
DeployValidationsReport:
27572770
type: object
@@ -4114,6 +4127,18 @@ definitions:
41144127
enum:
41154128
- new_dev_server
41164129
- content_refresh
4130+
providerDefinition:
4131+
type: object
4132+
properties:
4133+
token_env_var:
4134+
type: string
4135+
url_env_var:
4136+
type: string
4137+
models:
4138+
type: array
4139+
items:
4140+
type: string
4141+
41174142
parameters:
41184143
page:
41194144
type: integer

0 commit comments

Comments
 (0)