We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12bb690 commit 02525e8Copy full SHA for 02525e8
1 file changed
app/utils/config.py
@@ -1,7 +1,7 @@
1
import ast
2
import os
3
import sys
4
-from enum import Enum
+from enum import StrEnum
5
from typing import Any, Literal
6
7
import orjson
@@ -72,14 +72,14 @@ def _parse_json_string(cls, v: Any) -> Any:
72
return v
73
74
75
-class OversizedContextStrategy(str, Enum):
+class OversizedContextStrategy(StrEnum):
76
"""Strategy for handling oversized context."""
77
78
COMPACTION = "compaction"
79
FILE = "file"
80
81
82
-class ChatMode(str, Enum):
+class ChatMode(StrEnum):
83
"""Chat mode options for Gemini conversation handling."""
84
85
NORMAL = "normal"
0 commit comments