Skip to content

Commit 053fc0a

Browse files
authored
chore!: remove all deprecated routes (including /openai/v1/ ones) (#4054)
This PR removes all routes which we had marked deprecated for the 0.3.0 release. This includes: - all the `/v1/openai/v1/` routes (the corresponding /v1 routes still exist of course) - the /agents API (which is superseded completely by Responses + Conversations) - several alpha routes which had a "v1" route to aide transitioning to "v1alpha" This is the corresponding client-python change: llamastack/llama-stack-client-python#294
1 parent 62b3ad3 commit 053fc0a

File tree

16 files changed

+285
-11246
lines changed

16 files changed

+285
-11246
lines changed

client-sdks/stainless/openapi.yml

Lines changed: 86 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -977,11 +977,11 @@ paths:
977977
get:
978978
responses:
979979
'200':
980-
description: A ListModelsResponse.
980+
description: A OpenAIListModelsResponse.
981981
content:
982982
application/json:
983983
schema:
984-
$ref: '#/components/schemas/ListModelsResponse'
984+
$ref: '#/components/schemas/OpenAIListModelsResponse'
985985
'400':
986986
$ref: '#/components/responses/BadRequest400'
987987
'429':
@@ -994,8 +994,8 @@ paths:
994994
$ref: '#/components/responses/DefaultError'
995995
tags:
996996
- Models
997-
summary: List all models.
998-
description: List all models.
997+
summary: List models using the OpenAI API.
998+
description: List models using the OpenAI API.
999999
parameters: []
10001000
deprecated: false
10011001
post:
@@ -1129,31 +1129,6 @@ paths:
11291129
$ref: '#/components/schemas/RunModerationRequest'
11301130
required: true
11311131
deprecated: false
1132-
/v1/openai/v1/models:
1133-
get:
1134-
responses:
1135-
'200':
1136-
description: A OpenAIListModelsResponse.
1137-
content:
1138-
application/json:
1139-
schema:
1140-
$ref: '#/components/schemas/OpenAIListModelsResponse'
1141-
'400':
1142-
$ref: '#/components/responses/BadRequest400'
1143-
'429':
1144-
$ref: >-
1145-
#/components/responses/TooManyRequests429
1146-
'500':
1147-
$ref: >-
1148-
#/components/responses/InternalServerError500
1149-
default:
1150-
$ref: '#/components/responses/DefaultError'
1151-
tags:
1152-
- Models
1153-
summary: List models using the OpenAI API.
1154-
description: List models using the OpenAI API.
1155-
parameters: []
1156-
deprecated: false
11571132
/v1/prompts:
11581133
get:
11591134
responses:
@@ -6823,38 +6798,20 @@ components:
68236798
title: ListRoutesResponse
68246799
description: >-
68256800
Response containing a list of all available API routes.
6826-
Model:
6801+
OpenAIModel:
68276802
type: object
68286803
properties:
6829-
identifier:
6830-
type: string
6831-
description: >-
6832-
Unique identifier for this resource in llama stack
6833-
provider_resource_id:
6834-
type: string
6835-
description: >-
6836-
Unique identifier for this resource in the provider
6837-
provider_id:
6804+
id:
68386805
type: string
6839-
description: >-
6840-
ID of the provider that owns this resource
6841-
type:
6806+
object:
68426807
type: string
6843-
enum:
6844-
- model
6845-
- shield
6846-
- vector_store
6847-
- dataset
6848-
- scoring_function
6849-
- benchmark
6850-
- tool
6851-
- tool_group
6852-
- prompt
68536808
const: model
68546809
default: model
6855-
description: >-
6856-
The resource type, always 'model' for model resources
6857-
metadata:
6810+
created:
6811+
type: integer
6812+
owned_by:
6813+
type: string
6814+
custom_metadata:
68586815
type: object
68596816
additionalProperties:
68606817
oneOf:
@@ -6864,22 +6821,25 @@ components:
68646821
- type: string
68656822
- type: array
68666823
- type: object
6867-
description: Any additional metadata for this model
6868-
model_type:
6869-
$ref: '#/components/schemas/ModelType'
6870-
default: llm
6871-
description: >-
6872-
The type of model (LLM or embedding model)
68736824
additionalProperties: false
68746825
required:
6875-
- identifier
6876-
- provider_id
6877-
- type
6878-
- metadata
6879-
- model_type
6880-
title: Model
6881-
description: >-
6882-
A model resource representing an AI model registered in Llama Stack.
6826+
- id
6827+
- object
6828+
- created
6829+
- owned_by
6830+
title: OpenAIModel
6831+
description: A model from OpenAI.
6832+
OpenAIListModelsResponse:
6833+
type: object
6834+
properties:
6835+
data:
6836+
type: array
6837+
items:
6838+
$ref: '#/components/schemas/OpenAIModel'
6839+
additionalProperties: false
6840+
required:
6841+
- data
6842+
title: OpenAIListModelsResponse
68836843
ModelType:
68846844
type: string
68856845
enum:
@@ -6889,17 +6849,6 @@ components:
68896849
title: ModelType
68906850
description: >-
68916851
Enumeration of supported model types in Llama Stack.
6892-
ListModelsResponse:
6893-
type: object
6894-
properties:
6895-
data:
6896-
type: array
6897-
items:
6898-
$ref: '#/components/schemas/Model'
6899-
additionalProperties: false
6900-
required:
6901-
- data
6902-
title: ListModelsResponse
69036852
RegisterModelRequest:
69046853
type: object
69056854
properties:
@@ -6931,6 +6880,63 @@ components:
69316880
required:
69326881
- model_id
69336882
title: RegisterModelRequest
6883+
Model:
6884+
type: object
6885+
properties:
6886+
identifier:
6887+
type: string
6888+
description: >-
6889+
Unique identifier for this resource in llama stack
6890+
provider_resource_id:
6891+
type: string
6892+
description: >-
6893+
Unique identifier for this resource in the provider
6894+
provider_id:
6895+
type: string
6896+
description: >-
6897+
ID of the provider that owns this resource
6898+
type:
6899+
type: string
6900+
enum:
6901+
- model
6902+
- shield
6903+
- vector_store
6904+
- dataset
6905+
- scoring_function
6906+
- benchmark
6907+
- tool
6908+
- tool_group
6909+
- prompt
6910+
const: model
6911+
default: model
6912+
description: >-
6913+
The resource type, always 'model' for model resources
6914+
metadata:
6915+
type: object
6916+
additionalProperties:
6917+
oneOf:
6918+
- type: 'null'
6919+
- type: boolean
6920+
- type: number
6921+
- type: string
6922+
- type: array
6923+
- type: object
6924+
description: Any additional metadata for this model
6925+
model_type:
6926+
$ref: '#/components/schemas/ModelType'
6927+
default: llm
6928+
description: >-
6929+
The type of model (LLM or embedding model)
6930+
additionalProperties: false
6931+
required:
6932+
- identifier
6933+
- provider_id
6934+
- type
6935+
- metadata
6936+
- model_type
6937+
title: Model
6938+
description: >-
6939+
A model resource representing an AI model registered in Llama Stack.
69346940
RunModerationRequest:
69356941
type: object
69366942
properties:
@@ -7020,48 +7026,6 @@ components:
70207026
- metadata
70217027
title: ModerationObjectResults
70227028
description: A moderation object.
7023-
OpenAIModel:
7024-
type: object
7025-
properties:
7026-
id:
7027-
type: string
7028-
object:
7029-
type: string
7030-
const: model
7031-
default: model
7032-
created:
7033-
type: integer
7034-
owned_by:
7035-
type: string
7036-
custom_metadata:
7037-
type: object
7038-
additionalProperties:
7039-
oneOf:
7040-
- type: 'null'
7041-
- type: boolean
7042-
- type: number
7043-
- type: string
7044-
- type: array
7045-
- type: object
7046-
additionalProperties: false
7047-
required:
7048-
- id
7049-
- object
7050-
- created
7051-
- owned_by
7052-
title: OpenAIModel
7053-
description: A model from OpenAI.
7054-
OpenAIListModelsResponse:
7055-
type: object
7056-
properties:
7057-
data:
7058-
type: array
7059-
items:
7060-
$ref: '#/components/schemas/OpenAIModel'
7061-
additionalProperties: false
7062-
required:
7063-
- data
7064-
title: OpenAIListModelsResponse
70657029
Prompt:
70667030
type: object
70677031
properties:

0 commit comments

Comments
 (0)