From 9fddbdfcdf9fadc843732206c438c90f2c2e8928 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Fri, 18 Oct 2024 20:48:28 -0700 Subject: [PATCH] Update spec since we changed some types for completion API --- docs/resources/llama-stack-spec.html | 78 +++++++++++++++------------- docs/resources/llama-stack-spec.yaml | 37 +++++++------ 2 files changed, 61 insertions(+), 54 deletions(-) diff --git a/docs/resources/llama-stack-spec.html b/docs/resources/llama-stack-spec.html index a2f92b6e4..8e6683931 100644 --- a/docs/resources/llama-stack-spec.html +++ b/docs/resources/llama-stack-spec.html @@ -21,7 +21,7 @@ "info": { "title": "[DRAFT] Llama Stack Specification", "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-10-10 15:29:56.831109" + "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-10-18 20:48:17.730988" }, "servers": [ { @@ -2830,8 +2830,11 @@ "CompletionResponse": { "type": "object", "properties": { - "completion_message": { - "$ref": "#/components/schemas/CompletionMessage" + "content": { + "type": "string" + }, + "stop_reason": { + "$ref": "#/components/schemas/StopReason" }, "logprobs": { "type": "array", @@ -2842,7 +2845,8 @@ }, "additionalProperties": false, "required": [ - "completion_message" + "content", + "stop_reason" ], "title": "Completion response." }, @@ -6075,49 +6079,49 @@ ], "tags": [ { - "name": "Evaluations" - }, - { - "name": "Inspect" + "name": "Models" }, { "name": "RewardScoring" }, { - "name": "Datasets" - }, - { - "name": "Models" - }, - { - "name": "Telemetry" - }, - { - "name": "PostTraining" - }, - { - "name": "SyntheticDataGeneration" - }, - { - "name": "BatchInference" - }, - { - "name": "Inference" - }, - { - "name": "Agents" - }, - { - "name": "Memory" - }, - { - "name": "Safety" + "name": "MemoryBanks" }, { "name": "Shields" }, { - "name": "MemoryBanks" + "name": "SyntheticDataGeneration" + }, + { + "name": "Inference" + }, + { + "name": "Inspect" + }, + { + "name": "BatchInference" + }, + { + "name": "Memory" + }, + { + "name": "Datasets" + }, + { + "name": "Agents" + }, + { + "name": "PostTraining" + }, + { + "name": "Telemetry" + }, + { + "name": "Safety" + }, + { + "name": "Evaluations" }, { "name": "BuiltinTool", diff --git a/docs/resources/llama-stack-spec.yaml b/docs/resources/llama-stack-spec.yaml index c9822d6ca..906d3934a 100644 --- a/docs/resources/llama-stack-spec.yaml +++ b/docs/resources/llama-stack-spec.yaml @@ -501,14 +501,17 @@ components: CompletionResponse: additionalProperties: false properties: - completion_message: - $ref: '#/components/schemas/CompletionMessage' + content: + type: string logprobs: items: $ref: '#/components/schemas/TokenLogProbs' type: array + stop_reason: + $ref: '#/components/schemas/StopReason' required: - - completion_message + - content + - stop_reason title: Completion response. type: object CompletionResponseStreamChunk: @@ -2507,7 +2510,7 @@ info: 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-10-10 15:29:56.831109" + \ draft and subject to change.\n Generated at 2024-10-18 20:48:17.730988" title: '[DRAFT] Llama Stack Specification' version: 0.0.1 jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema @@ -3712,21 +3715,21 @@ security: servers: - url: http://any-hosted-llama-stack.com tags: -- name: Evaluations -- name: Inspect -- name: RewardScoring -- name: Datasets - name: Models -- name: Telemetry -- name: PostTraining -- name: SyntheticDataGeneration -- name: BatchInference -- name: Inference -- name: Agents -- name: Memory -- name: Safety -- name: Shields +- name: RewardScoring - name: MemoryBanks +- name: Shields +- name: SyntheticDataGeneration +- name: Inference +- name: Inspect +- name: BatchInference +- name: Memory +- name: Datasets +- name: Agents +- name: PostTraining +- name: Telemetry +- name: Safety +- name: Evaluations - description: name: BuiltinTool - description: