leideng's picture
download
raw
418 Bytes
from typing import Dict
def is_legacy_structural_tag(obj: Dict) -> bool:
# test whether an object is a legacy structural tag
# see `StructuralTagResponseFormat` at `sglang.srt.entrypoints.openai.protocol`
if obj.get("structures", None) is not None:
assert obj.get("triggers", None) is not None
return True
else:
assert obj.get("format", None) is not None
return False

Xet Storage Details

Size:
418 Bytes
·
Xet hash:
ce896552492249907305ea9439a5e74759b3e36f64131f3e160d611366e9c4c6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.