Fixed an error in the preprocessor type definition.

This commit is contained in:
ilya-kolchinsky 2025-04-03 12:51:00 +02:00
parent 863f87aa15
commit 0d79043d79
3 changed files with 1 additions and 24 deletions

View file

@ -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"
},

View file

@ -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:

View file

@ -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: