inference regenerate openapi spec

This commit is contained in:
Xi Yan 2024-09-11 12:36:23 -07:00
parent 8b558336b4
commit 959c499cac
2 changed files with 25 additions and 83 deletions

View file

@ -21,7 +21,7 @@
"info": { "info": {
"title": "[DRAFT] Llama Stack Specification", "title": "[DRAFT] Llama Stack Specification",
"version": "0.0.1", "version": "0.0.1",
"description": "This is the specification of the llama stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. The specification is still in draft and subject to change.\n Generated at 2024-09-10 16:42:15.870336" "description": "This is the specification of the llama stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. The specification is still in draft and subject to change.\n Generated at 2024-09-11 12:34:17.939867"
}, },
"servers": [ "servers": [
{ {
@ -157,7 +157,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/ChatCompletionRequestWrapper" "$ref": "#/components/schemas/ChatCompletionRequest"
} }
} }
}, },
@ -187,7 +187,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/CompletionRequestWrapper" "$ref": "#/components/schemas/CompletionRequest"
} }
} }
}, },
@ -2228,18 +2228,6 @@
"messages" "messages"
] ]
}, },
"ChatCompletionRequestWrapper": {
"type": "object",
"properties": {
"request": {
"$ref": "#/components/schemas/ChatCompletionRequest"
}
},
"additionalProperties": false,
"required": [
"request"
]
},
"ChatCompletionResponseEvent": { "ChatCompletionResponseEvent": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -2382,18 +2370,6 @@
"content" "content"
] ]
}, },
"CompletionRequestWrapper": {
"type": "object",
"properties": {
"request": {
"$ref": "#/components/schemas/CompletionRequest"
}
},
"additionalProperties": false,
"required": [
"request"
]
},
"CompletionResponseStreamChunk": { "CompletionResponseStreamChunk": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -6220,17 +6196,14 @@
], ],
"tags": [ "tags": [
{ {
"name": "BatchInference" "name": "PostTraining"
},
{
"name": "Safety"
},
{
"name": "Telemetry"
}, },
{ {
"name": "RewardScoring" "name": "RewardScoring"
}, },
{
"name": "Safety"
},
{ {
"name": "Memory" "name": "Memory"
}, },
@ -6238,20 +6211,23 @@
"name": "SyntheticDataGeneration" "name": "SyntheticDataGeneration"
}, },
{ {
"name": "Inference" "name": "BatchInference"
},
{
"name": "AgenticSystem"
},
{
"name": "Telemetry"
}, },
{ {
"name": "Evaluations" "name": "Evaluations"
}, },
{ {
"name": "PostTraining" "name": "Inference"
}, },
{ {
"name": "Datasets" "name": "Datasets"
}, },
{
"name": "AgenticSystem"
},
{ {
"name": "BatchChatCompletionRequest", "name": "BatchChatCompletionRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequest\" />"
@ -6340,10 +6316,6 @@
"name": "ChatCompletionRequest", "name": "ChatCompletionRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />"
}, },
{
"name": "ChatCompletionRequestWrapper",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequestWrapper\" />"
},
{ {
"name": "ChatCompletionResponseEvent", "name": "ChatCompletionResponseEvent",
"description": "Chat completion response event.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEvent\" />" "description": "Chat completion response event.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEvent\" />"
@ -6372,10 +6344,6 @@
"name": "CompletionRequest", "name": "CompletionRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequest\" />"
}, },
{
"name": "CompletionRequestWrapper",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequestWrapper\" />"
},
{ {
"name": "CompletionResponseStreamChunk", "name": "CompletionResponseStreamChunk",
"description": "streamed completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponseStreamChunk\" />" "description": "streamed completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponseStreamChunk\" />"
@ -6904,7 +6872,6 @@
"CancelEvaluationJobRequest", "CancelEvaluationJobRequest",
"CancelTrainingJobRequest", "CancelTrainingJobRequest",
"ChatCompletionRequest", "ChatCompletionRequest",
"ChatCompletionRequestWrapper",
"ChatCompletionResponseEvent", "ChatCompletionResponseEvent",
"ChatCompletionResponseEventType", "ChatCompletionResponseEventType",
"ChatCompletionResponseStreamChunk", "ChatCompletionResponseStreamChunk",
@ -6912,7 +6879,6 @@
"CodeInterpreterToolDefinition", "CodeInterpreterToolDefinition",
"CompletionMessage", "CompletionMessage",
"CompletionRequest", "CompletionRequest",
"CompletionRequestWrapper",
"CompletionResponseStreamChunk", "CompletionResponseStreamChunk",
"CreateAgenticSystemRequest", "CreateAgenticSystemRequest",
"CreateAgenticSystemSessionRequest", "CreateAgenticSystemSessionRequest",

View file

@ -701,14 +701,6 @@ components:
- model - model
- messages - messages
type: object type: object
ChatCompletionRequestWrapper:
additionalProperties: false
properties:
request:
$ref: '#/components/schemas/ChatCompletionRequest'
required:
- request
type: object
ChatCompletionResponseEvent: ChatCompletionResponseEvent:
additionalProperties: false additionalProperties: false
properties: properties:
@ -817,14 +809,6 @@ components:
- model - model
- content - content
type: object type: object
CompletionRequestWrapper:
additionalProperties: false
properties:
request:
$ref: '#/components/schemas/CompletionRequest'
required:
- request
type: object
CompletionResponseStreamChunk: CompletionResponseStreamChunk:
additionalProperties: false additionalProperties: false
properties: properties:
@ -2838,7 +2822,7 @@ info:
description: "This is the specification of the llama stack that provides\n \ description: "This is the specification of the llama stack that provides\n \
\ a set of endpoints and their corresponding interfaces that are tailored\ \ a set of endpoints and their corresponding interfaces that are tailored\
\ to\n best leverage Llama Models. The specification is still in\ \ to\n best leverage Llama Models. The specification is still in\
\ draft and subject to change.\n Generated at 2024-09-10 16:42:15.870336" \ draft and subject to change.\n Generated at 2024-09-11 12:34:17.939867"
title: '[DRAFT] Llama Stack Specification' title: '[DRAFT] Llama Stack Specification'
version: 0.0.1 version: 0.0.1
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
@ -3358,7 +3342,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ChatCompletionRequestWrapper' $ref: '#/components/schemas/ChatCompletionRequest'
required: true required: true
responses: responses:
'200': '200':
@ -3376,7 +3360,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CompletionRequestWrapper' $ref: '#/components/schemas/CompletionRequest'
required: true required: true
responses: responses:
'200': '200':
@ -3808,17 +3792,17 @@ security:
servers: servers:
- url: http://any-hosted-llama-stack.com - url: http://any-hosted-llama-stack.com
tags: tags:
- name: BatchInference - name: PostTraining
- name: Safety
- name: Telemetry
- name: RewardScoring - name: RewardScoring
- name: Safety
- name: Memory - name: Memory
- name: SyntheticDataGeneration - name: SyntheticDataGeneration
- name: Inference - name: BatchInference
- name: Evaluations
- name: PostTraining
- name: Datasets
- name: AgenticSystem - name: AgenticSystem
- name: Telemetry
- name: Evaluations
- name: Inference
- name: Datasets
- description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionRequest"
/> />
name: BatchChatCompletionRequest name: BatchChatCompletionRequest
@ -3885,9 +3869,6 @@ tags:
- description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionRequest"
/> />
name: ChatCompletionRequest name: ChatCompletionRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionRequestWrapper"
/>
name: ChatCompletionRequestWrapper
- description: 'Chat completion response event. - description: 'Chat completion response event.
@ -3913,9 +3894,6 @@ tags:
- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/CompletionRequest"
/> />
name: CompletionRequest name: CompletionRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionRequestWrapper"
/>
name: CompletionRequestWrapper
- description: 'streamed completion response. - description: 'streamed completion response.
@ -4353,7 +4331,6 @@ x-tagGroups:
- CancelEvaluationJobRequest - CancelEvaluationJobRequest
- CancelTrainingJobRequest - CancelTrainingJobRequest
- ChatCompletionRequest - ChatCompletionRequest
- ChatCompletionRequestWrapper
- ChatCompletionResponseEvent - ChatCompletionResponseEvent
- ChatCompletionResponseEventType - ChatCompletionResponseEventType
- ChatCompletionResponseStreamChunk - ChatCompletionResponseStreamChunk
@ -4361,7 +4338,6 @@ x-tagGroups:
- CodeInterpreterToolDefinition - CodeInterpreterToolDefinition
- CompletionMessage - CompletionMessage
- CompletionRequest - CompletionRequest
- CompletionRequestWrapper
- CompletionResponseStreamChunk - CompletionResponseStreamChunk
- CreateAgenticSystemRequest - CreateAgenticSystemRequest
- CreateAgenticSystemSessionRequest - CreateAgenticSystemSessionRequest