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": {
"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": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />"

View file

@ -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: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" />
name: BuiltinTool
- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage"

View file

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