mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
chore!: add double routes for v1/openai/v1 (#3636)
So that users get a warning in 0.3.0 and we remove them in 0.4.0. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
67fa616c51
commit
856de66231
11 changed files with 12768 additions and 22 deletions
7163
docs/static/deprecated-llama-stack-spec.html
vendored
7163
docs/static/deprecated-llama-stack-spec.html
vendored
File diff suppressed because it is too large
Load diff
5435
docs/static/deprecated-llama-stack-spec.yaml
vendored
5435
docs/static/deprecated-llama-stack-spec.yaml
vendored
File diff suppressed because it is too large
Load diff
42
docs/static/llama-stack-spec.html
vendored
42
docs/static/llama-stack-spec.html
vendored
|
@ -1310,16 +1310,11 @@
|
|||
"post": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "An OpenAIResponseObject.",
|
||||
"description": "A ListOpenAIResponseObject.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/OpenAIResponseObject"
|
||||
}
|
||||
},
|
||||
"text/event-stream": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/OpenAIResponseObjectStream"
|
||||
"$ref": "#/components/schemas/ListOpenAIResponseObject"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1340,14 +1335,14 @@
|
|||
"tags": [
|
||||
"Agents"
|
||||
],
|
||||
"summary": "Create a new OpenAI response.",
|
||||
"description": "Create a new OpenAI response.",
|
||||
"summary": "List all OpenAI responses.",
|
||||
"description": "List all OpenAI responses.",
|
||||
"parameters": [],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/CreateOpenaiResponseRequest"
|
||||
"$ref": "#/components/schemas/ListOpenaiResponsesRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -8238,6 +8233,33 @@
|
|||
],
|
||||
"title": "OpenAIResponseObjectStreamResponseWebSearchCallSearching"
|
||||
},
|
||||
"ListOpenaiResponsesRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"after": {
|
||||
"type": "string",
|
||||
"description": "The ID of the last response to return."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"description": "The number of responses to return."
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The model to filter responses by."
|
||||
},
|
||||
"order": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"asc",
|
||||
"desc"
|
||||
],
|
||||
"description": "The order to sort responses by when sorted by created_at ('asc' or 'desc')."
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"title": "ListOpenaiResponsesRequest"
|
||||
},
|
||||
"OpenAIDeleteResponseObject": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
34
docs/static/llama-stack-spec.yaml
vendored
34
docs/static/llama-stack-spec.yaml
vendored
|
@ -967,14 +967,11 @@ paths:
|
|||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: An OpenAIResponseObject.
|
||||
description: A ListOpenAIResponseObject.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/OpenAIResponseObject'
|
||||
text/event-stream:
|
||||
schema:
|
||||
$ref: '#/components/schemas/OpenAIResponseObjectStream'
|
||||
$ref: '#/components/schemas/ListOpenAIResponseObject'
|
||||
'400':
|
||||
$ref: '#/components/responses/BadRequest400'
|
||||
'429':
|
||||
|
@ -987,14 +984,14 @@ paths:
|
|||
$ref: '#/components/responses/DefaultError'
|
||||
tags:
|
||||
- Agents
|
||||
summary: Create a new OpenAI response.
|
||||
description: Create a new OpenAI response.
|
||||
summary: List all OpenAI responses.
|
||||
description: List all OpenAI responses.
|
||||
parameters: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CreateOpenaiResponseRequest'
|
||||
$ref: '#/components/schemas/ListOpenaiResponsesRequest'
|
||||
required: true
|
||||
deprecated: false
|
||||
/v1/responses/{response_id}:
|
||||
|
@ -6199,6 +6196,27 @@ components:
|
|||
- type
|
||||
title: >-
|
||||
OpenAIResponseObjectStreamResponseWebSearchCallSearching
|
||||
ListOpenaiResponsesRequest:
|
||||
type: object
|
||||
properties:
|
||||
after:
|
||||
type: string
|
||||
description: The ID of the last response to return.
|
||||
limit:
|
||||
type: integer
|
||||
description: The number of responses to return.
|
||||
model:
|
||||
type: string
|
||||
description: The model to filter responses by.
|
||||
order:
|
||||
type: string
|
||||
enum:
|
||||
- asc
|
||||
- desc
|
||||
description: >-
|
||||
The order to sort responses by when sorted by created_at ('asc' or 'desc').
|
||||
additionalProperties: false
|
||||
title: ListOpenaiResponsesRequest
|
||||
OpenAIDeleteResponseObject:
|
||||
type: object
|
||||
properties:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue