mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
Fixed an error in the preprocessor type definition.
This commit is contained in:
parent
2008cd7921
commit
0b968678b4
3 changed files with 1 additions and 24 deletions
12
docs/_static/llama-stack-spec.html
vendored
12
docs/_static/llama-stack-spec.html
vendored
|
@ -7198,18 +7198,6 @@
|
|||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"model",
|
||||
"shield",
|
||||
"vector_db",
|
||||
"dataset",
|
||||
"scoring_function",
|
||||
"benchmark",
|
||||
"tool",
|
||||
"tool_group",
|
||||
"preprocessor"
|
||||
],
|
||||
"title": "ResourceType",
|
||||
"const": "preprocessor",
|
||||
"default": "preprocessor"
|
||||
},
|
||||
|
|
11
docs/_static/llama-stack-spec.yaml
vendored
11
docs/_static/llama-stack-spec.yaml
vendored
|
@ -5022,17 +5022,6 @@ components:
|
|||
type: string
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- model
|
||||
- shield
|
||||
- vector_db
|
||||
- dataset
|
||||
- scoring_function
|
||||
- benchmark
|
||||
- tool
|
||||
- tool_group
|
||||
- preprocessor
|
||||
title: ResourceType
|
||||
const: preprocessor
|
||||
default: preprocessor
|
||||
metadata:
|
||||
|
|
|
@ -15,7 +15,7 @@ from llama_stack.schema_utils import json_schema_type, webmethod
|
|||
|
||||
@json_schema_type
|
||||
class Preprocessor(Resource):
|
||||
type: Literal[ResourceType.preprocessor] = ResourceType.preprocessor
|
||||
type: Literal[ResourceType.preprocessor.value] = ResourceType.preprocessor.value # type: ignore
|
||||
|
||||
@property
|
||||
def preprocessor_id(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue