kikocis/llama-stack public
Changesets · Branches · Tags · Compare
| Changeset | 371459e1ee27cc2eaa80ee44ccd51b4a87a9211a84c4bf27bf5799a5ff7c1831 |
|---|---|
| Author | Dalton Flanagan <6599399+dltn@users.noreply.github.com> · 2024-09-10 01:14 -04:00 |
| Committer | Dalton Flanagan <6599399+dltn@users.noreply.github.com> · 2024-09-10 01:14 -04:00 |
| Parents | 0969b8adf540 |
3 files changed
modified rfcs/RFC-0001-llama-stack-assets/llama-stack-spec.html +10 −10
| @@ -21,7 +21,7 @@ | ||
| 21 | 21 | "info": { |
| 22 | 22 | "title": "[DRAFT] Llama Stack Specification", |
| 23 | 23 | "version": "0.0.1", |
| 24 | - "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-09-09 11:19:39.855375" | |
| 24 | + "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-09-10 01:13:08.531639" | |
| 25 | 25 | }, |
| 26 | 26 | "servers": [ |
| 27 | 27 | { |
| @@ -141,7 +141,7 @@ | ||
| 141 | 141 | "200": { |
| 142 | 142 | "description": "SSE-stream of these events.", |
| 143 | 143 | "content": { |
| 144 | - "application/json": { | |
| 144 | + "text/event-stream": { | |
| 145 | 145 | "schema": { |
| 146 | 146 | "$ref": "#/components/schemas/ChatCompletionResponseStreamChunk" |
| 147 | 147 | } |
| @@ -6063,34 +6063,34 @@ | ||
| 6063 | 6063 | ], |
| 6064 | 6064 | "tags": [ |
| 6065 | 6065 | { |
| 6066 | - "name": "Inference" | |
| 6066 | + "name": "SyntheticDataGeneration" | |
| 6067 | 6067 | }, |
| 6068 | 6068 | { |
| 6069 | - "name": "Datasets" | |
| 6069 | + "name": "RewardScoring" | |
| 6070 | 6070 | }, |
| 6071 | 6071 | { |
| 6072 | - "name": "Evaluations" | |
| 6072 | + "name": "Datasets" | |
| 6073 | 6073 | }, |
| 6074 | 6074 | { |
| 6075 | 6075 | "name": "Memory" |
| 6076 | 6076 | }, |
| 6077 | 6077 | { |
| 6078 | - "name": "SyntheticDataGeneration" | |
| 6078 | + "name": "AgenticSystem" | |
| 6079 | 6079 | }, |
| 6080 | 6080 | { |
| 6081 | - "name": "PostTraining" | |
| 6081 | + "name": "BatchInference" | |
| 6082 | 6082 | }, |
| 6083 | 6083 | { |
| 6084 | - "name": "RewardScoring" | |
| 6084 | + "name": "PostTraining" | |
| 6085 | 6085 | }, |
| 6086 | 6086 | { |
| 6087 | - "name": "BatchInference" | |
| 6087 | + "name": "Evaluations" | |
| 6088 | 6088 | }, |
| 6089 | 6089 | { |
| 6090 | 6090 | "name": "Telemetry" |
| 6091 | 6091 | }, |
| 6092 | 6092 | { |
| 6093 | - "name": "AgenticSystem" | |
| 6093 | + "name": "Inference" | |
| 6094 | 6094 | }, |
| 6095 | 6095 | { |
| 6096 | 6096 | "name": "BatchChatCompletionRequest", |
modified rfcs/RFC-0001-llama-stack-assets/llama-stack-spec.yaml +8 −8
| @@ -2777,7 +2777,7 @@ | ||
| 2777 | 2777 | description: "This is the specification of the llama stack that provides\n \ |
| 2778 | 2778 | \ a set of endpoints and their corresponding interfaces that are tailored\ |
| 2779 | 2779 | \ to\n best leverage Llama Models. The specification is still in\ |
| 2780 | - \ draft and subject to change.\n Generated at 2024-09-09 11:19:39.855375" | |
| 2780 | + \ draft and subject to change.\n Generated at 2024-09-10 01:13:08.531639" | |
| 2781 | 2781 | title: '[DRAFT] Llama Stack Specification' |
| 2782 | 2782 | version: 0.0.1 |
| 2783 | 2783 | jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema |
| @@ -3302,7 +3302,7 @@ | ||
| 3302 | 3302 | responses: |
| 3303 | 3303 | '200': |
| 3304 | 3304 | content: |
| 3305 | - application/json: | |
| 3305 | + text/event-stream: | |
| 3306 | 3306 | schema: |
| 3307 | 3307 | $ref: '#/components/schemas/ChatCompletionResponseStreamChunk' |
| 3308 | 3308 | description: SSE-stream of these events. |
| @@ -3729,16 +3729,16 @@ | ||
| 3729 | 3729 | servers: |
| 3730 | 3730 | - url: http://any-hosted-llama-stack.com |
| 3731 | 3731 | tags: |
| 3732 | -- name: Inference | |
| 3733 | -- name: Datasets | |
| 3734 | -- name: Evaluations | |
| 3735 | -- name: Memory | |
| 3736 | 3732 | - name: SyntheticDataGeneration |
| 3737 | -- name: PostTraining | |
| 3738 | 3733 | - name: RewardScoring |
| 3734 | +- name: Datasets | |
| 3735 | +- name: Memory | |
| 3736 | +- name: AgenticSystem | |
| 3739 | 3737 | - name: BatchInference |
| 3738 | +- name: PostTraining | |
| 3739 | +- name: Evaluations | |
| 3740 | 3740 | - name: Telemetry |
| 3741 | -- name: AgenticSystem | |
| 3741 | +- name: Inference | |
| 3742 | 3742 | - description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionRequest" |
| 3743 | 3743 | /> |
| 3744 | 3744 | name: BatchChatCompletionRequest |
modified rfcs/openapi_generator/generate.py +4 −1
| @@ -35,7 +35,10 @@ | ||
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | # TODO: this should be fixed in the generator itself so it reads appropriate annotations |
| 38 | -STREAMING_ENDPOINTS = ["/agentic_system/turn/create"] | |
| 38 | +STREAMING_ENDPOINTS = [ | |
| 39 | + "/agentic_system/turn/create", | |
| 40 | + "/inference/chat_completion", | |
| 41 | +] | |
| 39 | 42 | |
| 40 | 43 | |
| 41 | 44 | def patch_sse_stream_responses(spec: Specification): |