We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fab7f commit 12a256eCopy full SHA for 12a256e
services/modelserving/src/stackit/modelserving/models/model.py
@@ -77,8 +77,8 @@ def displayed_name_validate_regular_expression(cls, value):
77
@field_validator("type")
78
def type_validate_enum(cls, value):
79
"""Validates the enum"""
80
- if value not in set(["chat", "embedding"]):
81
- raise ValueError("must be one of enum values ('chat', 'embedding')")
+ if value not in set(["chat", "embedding", "audio", "image"]):
+ raise ValueError("must be one of enum values ('chat', 'embedding', 'audio', 'image')")
82
return value
83
84
model_config = ConfigDict(
0 commit comments