Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions client-sdks/stainless/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,6 @@ resources:
paginated: false
endpoint: get /v1/models
retrieve: get /v1/models/{model_id}
register: post /v1/models
unregister: delete /v1/models/{model_id}
subresources:
openai:
methods:
Expand Down
74 changes: 8 additions & 66 deletions client-sdks/stainless/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1027,38 +1027,6 @@ paths:
summary: List models using the OpenAI API.
description: List models using the OpenAI API.
operationId: openai_list_models_v1_models_get
post:
responses:
'200':
description: The registered model object.
content:
application/json:
schema:
$ref: '#/components/schemas/Model'
'400':
description: Bad Request
$ref: '#/components/responses/BadRequest400'
'429':
description: Too Many Requests
$ref: '#/components/responses/TooManyRequests429'
'500':
description: Internal Server Error
$ref: '#/components/responses/InternalServerError500'
default:
description: Default Response
$ref: '#/components/responses/DefaultError'
tags:
- Models
summary: Register a model.
description: Register a model.
operationId: register_model_v1_models_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterModelRequest'
required: true
deprecated: true
/v1/models/{model_id}:
get:
responses:
Expand Down Expand Up @@ -1094,37 +1062,6 @@ paths:
description: The ID of the model to get.
title: Model Id
description: The ID of the model to get.
delete:
responses:
'400':
$ref: '#/components/responses/BadRequest400'
description: Bad Request
'429':
$ref: '#/components/responses/TooManyRequests429'
description: Too Many Requests
'500':
$ref: '#/components/responses/InternalServerError500'
description: Internal Server Error
default:
$ref: '#/components/responses/DefaultError'
description: Default Response
'204':
description: The model was successfully unregistered.
tags:
- Models
summary: Unregister a model.
description: Unregister a model.
operationId: unregister_model_v1_models__model_id__delete
parameters:
- name: model_id
in: path
required: true
schema:
type: string
description: The ID of the model to unregister.
title: Model Id
description: The ID of the model to unregister.
deprecated: true
/v1/moderations:
post:
responses:
Expand Down Expand Up @@ -11012,43 +10949,48 @@ components:
title: RerankResponse
description: Response from a reranking request.
RegisterModelRequest:
description: Request model for registering a model.
properties:
model_id:
type: string
title: Model Id
description: The identifier of the model to register.
title: Model Id
type: string
provider_model_id:
anyOf:
- type: string
- type: 'null'
description: The identifier of the model in the provider.
nullable: true
provider_id:
anyOf:
- type: string
- type: 'null'
description: The identifier of the provider.
nullable: true
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
description: Any additional metadata for this model.
nullable: true
model_type:
anyOf:
- $ref: '#/components/schemas/ModelType'
title: ModelType
- type: 'null'
description: The type of model to register.
nullable: true
title: ModelType
model_validation:
anyOf:
- type: boolean
- type: 'null'
description: Enable model availability check during registration. When false (default), validation is deferred to runtime and model is preserved during provider refresh.
nullable: true
required:
- model_id
title: RegisterModelRequest
description: Request model for registering a model.
ParamType:
discriminator:
mapping:
Expand Down
Loading
Loading