fix:优化pm2配置项
This commit is contained in:
@@ -5,7 +5,19 @@ AI 新闻分类与严重度判定
|
||||
设置 PARSER_AI_DISABLED=1 可只用规则(更快)
|
||||
"""
|
||||
import os
|
||||
from typing import Literal, Optional, Tuple
|
||||
from typing import Any, Optional, Tuple
|
||||
|
||||
try:
|
||||
from typing import Literal # type: ignore
|
||||
except ImportError:
|
||||
try:
|
||||
from typing_extensions import Literal # type: ignore
|
||||
except ImportError:
|
||||
class _LiteralFallback:
|
||||
def __getitem__(self, item):
|
||||
return Any
|
||||
|
||||
Literal = _LiteralFallback()
|
||||
|
||||
Category = Literal["deployment", "alert", "intel", "diplomatic", "other"]
|
||||
Severity = Literal["low", "medium", "high", "critical"]
|
||||
|
||||
Reference in New Issue
Block a user