From 0ba11b82bed954ab59cec6e72ef0f4f1812d5fa5 Mon Sep 17 00:00:00 2001 From: Dinesh Yeduguru Date: Wed, 13 Nov 2024 21:06:16 -0800 Subject: [PATCH] make update a POST --- docs/resources/llama-stack-spec.html | 44 ++++++++++++++-------------- docs/resources/llama-stack-spec.yaml | 22 +++++++------- llama_stack/apis/models/models.py | 2 +- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/docs/resources/llama-stack-spec.html b/docs/resources/llama-stack-spec.html index 3cac93967..44554f2ff 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-11-13 18:16:59.065989" + "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-13 21:05:58.323310" }, "servers": [ { @@ -7964,44 +7964,29 @@ } ], "tags": [ - { - "name": "Shields" - }, - { - "name": "ScoringFunctions" - }, - { - "name": "MemoryBanks" - }, - { - "name": "Datasets" - }, { "name": "Agents" }, { "name": "DatasetIO" }, + { + "name": "Models" + }, { "name": "Inference" }, { - "name": "Inspect" + "name": "BatchInference" }, { "name": "Memory" }, - { - "name": "Models" - }, - { - "name": "PostTraining" - }, { "name": "Safety" }, { - "name": "SyntheticDataGeneration" + "name": "Inspect" }, { "name": "EvalTasks" @@ -8010,14 +7995,29 @@ "name": "Scoring" }, { - "name": "BatchInference" + "name": "Datasets" + }, + { + "name": "PostTraining" }, { "name": "Eval" }, + { + "name": "Shields" + }, { "name": "Telemetry" }, + { + "name": "ScoringFunctions" + }, + { + "name": "MemoryBanks" + }, + { + "name": "SyntheticDataGeneration" + }, { "name": "BuiltinTool", "description": "" diff --git a/docs/resources/llama-stack-spec.yaml b/docs/resources/llama-stack-spec.yaml index 5d2b91d84..fc28405d7 100644 --- a/docs/resources/llama-stack-spec.yaml +++ b/docs/resources/llama-stack-spec.yaml @@ -3414,7 +3414,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-11-13 18:16:59.065989" + \ draft and subject to change.\n Generated at 2024-11-13 21:05:58.323310" title: '[DRAFT] Llama Stack Specification' version: 0.0.1 jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema @@ -4824,24 +4824,24 @@ security: servers: - url: http://any-hosted-llama-stack.com tags: -- name: Shields -- name: ScoringFunctions -- name: MemoryBanks -- name: Datasets - name: Agents - name: DatasetIO -- name: Inference -- name: Inspect -- name: Memory - name: Models -- name: PostTraining +- name: Inference +- name: BatchInference +- name: Memory - name: Safety -- name: SyntheticDataGeneration +- name: Inspect - name: EvalTasks - name: Scoring -- name: BatchInference +- name: Datasets +- name: PostTraining - name: Eval +- name: Shields - name: Telemetry +- name: ScoringFunctions +- name: MemoryBanks +- name: SyntheticDataGeneration - description: name: BuiltinTool - description: Model: ... - @webmethod(route="/models/update", method="PUT") + @webmethod(route="/models/update", method="POST") async def update_model( self, model_id: str,