make update a POST

This commit is contained in:
Dinesh Yeduguru 2024-11-13 21:06:16 -08:00
parent 9e68ed3f36
commit 0ba11b82be
3 changed files with 34 additions and 34 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-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": [ "servers": [
{ {
@ -7964,44 +7964,29 @@
} }
], ],
"tags": [ "tags": [
{
"name": "Shields"
},
{
"name": "ScoringFunctions"
},
{
"name": "MemoryBanks"
},
{
"name": "Datasets"
},
{ {
"name": "Agents" "name": "Agents"
}, },
{ {
"name": "DatasetIO" "name": "DatasetIO"
}, },
{
"name": "Models"
},
{ {
"name": "Inference" "name": "Inference"
}, },
{ {
"name": "Inspect" "name": "BatchInference"
}, },
{ {
"name": "Memory" "name": "Memory"
}, },
{
"name": "Models"
},
{
"name": "PostTraining"
},
{ {
"name": "Safety" "name": "Safety"
}, },
{ {
"name": "SyntheticDataGeneration" "name": "Inspect"
}, },
{ {
"name": "EvalTasks" "name": "EvalTasks"
@ -8010,14 +7995,29 @@
"name": "Scoring" "name": "Scoring"
}, },
{ {
"name": "BatchInference" "name": "Datasets"
},
{
"name": "PostTraining"
}, },
{ {
"name": "Eval" "name": "Eval"
}, },
{
"name": "Shields"
},
{ {
"name": "Telemetry" "name": "Telemetry"
}, },
{
"name": "ScoringFunctions"
},
{
"name": "MemoryBanks"
},
{
"name": "SyntheticDataGeneration"
},
{ {
"name": "BuiltinTool", "name": "BuiltinTool",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />"

View file

@ -3414,7 +3414,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-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' 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
@ -4824,24 +4824,24 @@ security:
servers: servers:
- url: http://any-hosted-llama-stack.com - url: http://any-hosted-llama-stack.com
tags: tags:
- name: Shields
- name: ScoringFunctions
- name: MemoryBanks
- name: Datasets
- name: Agents - name: Agents
- name: DatasetIO - name: DatasetIO
- name: Inference
- name: Inspect
- name: Memory
- name: Models - name: Models
- name: PostTraining - name: Inference
- name: BatchInference
- name: Memory
- name: Safety - name: Safety
- name: SyntheticDataGeneration - name: Inspect
- name: EvalTasks - name: EvalTasks
- name: Scoring - name: Scoring
- name: BatchInference - name: Datasets
- name: PostTraining
- name: Eval - name: Eval
- name: Shields
- name: Telemetry - name: Telemetry
- name: ScoringFunctions
- name: MemoryBanks
- name: SyntheticDataGeneration
- 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"

View file

@ -55,7 +55,7 @@ class Models(Protocol):
metadata: Optional[Dict[str, Any]] = None, metadata: Optional[Dict[str, Any]] = None,
) -> Model: ... ) -> Model: ...
@webmethod(route="/models/update", method="PUT") @webmethod(route="/models/update", method="POST")
async def update_model( async def update_model(
self, self,
model_id: str, model_id: str,