Add SRT json decode example (#2)

This commit is contained in:
Liangsheng Yin authored and GitHub committed 2024-01-09 12:35:44 -08:00
1 parent 93eeb543ba
commit 331848de9d
4 files changed
+33 -2

No files matched your search

+5
View File
@@ -6,6 +6,11 @@ from typing import List, Optional, Union
from sglang.global_config import global_config
REGEX_INT = r"[-+]?[0-9]+"
REGEX_FLOAT = r"[-+]?[0-9]*\.?[0-9]+"
REGEX_BOOL = r"(True|False)"
REGEX_STRING = r"\"[\w\d\s]*\"" # bugs with regex r"\".*\"" in interegular pkg
@dataclasses.dataclass
class SamplingParams: