1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Source: partial-json-parser
Section: python
Priority: optional
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders: Kohei Sendai <kouhei.sendai@gmail.com>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
python3-setuptools,
python3-all,
pybuild-plugin-pyproject,
python3-pdm-backend
#Testsuite: autopkgtest-pkg-python
Standards-Version: 4.7.2
Homepage: https://github.com/promplate/partial-json-parser
Vcs-Browser: https://salsa.debian.org/python-team/packages/partial-json-parser
Vcs-Git: https://salsa.debian.org/python-team/packages/partial-json-parser.git
Package: python3-partial-json-parser
Section: python
Architecture: all
Depends:
${python3:Depends},
${misc:Depends},
Description: to produce structural information instead of natural language
Sometimes we need LLM (Large Language Models) to produce structural information
instead of natural language. The easiest way is to use JSON.
But before receiving the last token of response, the JSON is broken,
which means you can't use JSON.parse to decode it.
But we still want to stream the data to the user.
Here comes partial-json-parser, a lightweight and customizable library for parsing
partial JSON strings. Here is a demo.
|