run openapi gen

This commit is contained in:
Dinesh Yeduguru 2024-11-12 15:47:41 -08:00
parent 919d421bcf
commit 55d66ca918
2 changed files with 64 additions and 64 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-11-12 11:39:48.665782" "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-11-12 15:47:15.607543"
}, },
"servers": [ "servers": [
{ {
@ -2856,7 +2856,7 @@
"ChatCompletionRequest": { "ChatCompletionRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
"model": { "model_id": {
"type": "string" "type": "string"
}, },
"messages": { "messages": {
@ -2993,7 +2993,7 @@
}, },
"additionalProperties": false, "additionalProperties": false,
"required": [ "required": [
"model", "model_id",
"messages" "messages"
] ]
}, },
@ -3120,7 +3120,7 @@
"CompletionRequest": { "CompletionRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
"model": { "model_id": {
"type": "string" "type": "string"
}, },
"content": { "content": {
@ -3249,7 +3249,7 @@
}, },
"additionalProperties": false, "additionalProperties": false,
"required": [ "required": [
"model", "model_id",
"content" "content"
] ]
}, },
@ -4552,7 +4552,7 @@
"EmbeddingsRequest": { "EmbeddingsRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
"model": { "model_id": {
"type": "string" "type": "string"
}, },
"contents": { "contents": {
@ -4584,7 +4584,7 @@
}, },
"additionalProperties": false, "additionalProperties": false,
"required": [ "required": [
"model", "model_id",
"contents" "contents"
] ]
}, },
@ -7837,34 +7837,10 @@
], ],
"tags": [ "tags": [
{ {
"name": "MemoryBanks" "name": "Safety"
}, },
{ {
"name": "BatchInference" "name": "EvalTasks"
},
{
"name": "Agents"
},
{
"name": "Inference"
},
{
"name": "DatasetIO"
},
{
"name": "Eval"
},
{
"name": "Models"
},
{
"name": "PostTraining"
},
{
"name": "ScoringFunctions"
},
{
"name": "Datasets"
}, },
{ {
"name": "Shields" "name": "Shields"
@ -7872,15 +7848,6 @@
{ {
"name": "Telemetry" "name": "Telemetry"
}, },
{
"name": "Inspect"
},
{
"name": "Safety"
},
{
"name": "SyntheticDataGeneration"
},
{ {
"name": "Memory" "name": "Memory"
}, },
@ -7888,7 +7855,40 @@
"name": "Scoring" "name": "Scoring"
}, },
{ {
"name": "EvalTasks" "name": "ScoringFunctions"
},
{
"name": "SyntheticDataGeneration"
},
{
"name": "Models"
},
{
"name": "Agents"
},
{
"name": "MemoryBanks"
},
{
"name": "DatasetIO"
},
{
"name": "Inference"
},
{
"name": "Datasets"
},
{
"name": "PostTraining"
},
{
"name": "BatchInference"
},
{
"name": "Eval"
},
{
"name": "Inspect"
}, },
{ {
"name": "BuiltinTool", "name": "BuiltinTool",

View file

@ -396,7 +396,7 @@ components:
- $ref: '#/components/schemas/ToolResponseMessage' - $ref: '#/components/schemas/ToolResponseMessage'
- $ref: '#/components/schemas/CompletionMessage' - $ref: '#/components/schemas/CompletionMessage'
type: array type: array
model: model_id:
type: string type: string
response_format: response_format:
oneOf: oneOf:
@ -453,7 +453,7 @@ components:
$ref: '#/components/schemas/ToolDefinition' $ref: '#/components/schemas/ToolDefinition'
type: array type: array
required: required:
- model - model_id
- messages - messages
type: object type: object
ChatCompletionResponse: ChatCompletionResponse:
@ -577,7 +577,7 @@ components:
default: 0 default: 0
type: integer type: integer
type: object type: object
model: model_id:
type: string type: string
response_format: response_format:
oneOf: oneOf:
@ -626,7 +626,7 @@ components:
stream: stream:
type: boolean type: boolean
required: required:
- model - model_id
- content - content
type: object type: object
CompletionResponse: CompletionResponse:
@ -903,10 +903,10 @@ components:
- $ref: '#/components/schemas/ImageMedia' - $ref: '#/components/schemas/ImageMedia'
type: array type: array
type: array type: array
model: model_id:
type: string type: string
required: required:
- model - model_id
- contents - contents
type: object type: object
EmbeddingsResponse: EmbeddingsResponse:
@ -3384,7 +3384,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-11-12 11:39:48.665782" \ draft and subject to change.\n Generated at 2024-11-12 15:47:15.607543"
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
@ -4748,24 +4748,24 @@ security:
servers: servers:
- url: http://any-hosted-llama-stack.com - url: http://any-hosted-llama-stack.com
tags: tags:
- name: MemoryBanks - name: Safety
- name: BatchInference - name: EvalTasks
- name: Agents
- name: Inference
- name: DatasetIO
- name: Eval
- name: Models
- name: PostTraining
- name: ScoringFunctions
- name: Datasets
- name: Shields - name: Shields
- name: Telemetry - name: Telemetry
- name: Inspect
- name: Safety
- name: SyntheticDataGeneration
- name: Memory - name: Memory
- name: Scoring - name: Scoring
- name: EvalTasks - name: ScoringFunctions
- name: SyntheticDataGeneration
- name: Models
- name: Agents
- name: MemoryBanks
- name: DatasetIO
- name: Inference
- name: Datasets
- name: PostTraining
- name: BatchInference
- name: Eval
- name: Inspect
- description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" /> - description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" />
name: BuiltinTool name: BuiltinTool
- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage" - description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage"