mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
fix: finish conversion to StrEnum (#2514)
# What does this PR do? We still had a few enum declared to behave like string as well as enum. Let's use StrEnum for those. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
ac5fd57387
commit
36d70637b9
8 changed files with 17 additions and 17 deletions
|
@ -5,7 +5,7 @@
|
|||
# the root directory of this source tree.
|
||||
|
||||
import base64
|
||||
from enum import Enum
|
||||
from enum import Enum, StrEnum
|
||||
from io import BytesIO
|
||||
from typing import Annotated, Any, Literal
|
||||
|
||||
|
@ -171,7 +171,7 @@ class GenerationResult(BaseModel):
|
|||
ignore_token: bool
|
||||
|
||||
|
||||
class QuantizationMode(str, Enum):
|
||||
class QuantizationMode(StrEnum):
|
||||
none = "none"
|
||||
fp8_mixed = "fp8_mixed"
|
||||
int4_mixed = "int4_mixed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue