all options
sid  ]
[ Source: partial-json-parser  ]

Пакунок: python3-partial-json-parser (0.2.1.1.post5-1)

Links for python3-partial-json-parser

Screenshot

Debian Resources:

Download Source Package partial-json-parser:

Maintainers:

External Resources:

Similar packages:

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.

Інші пакунки пов'язані з python3-partial-json-parser

  • depends
  • recommends
  • suggests
  • enhances

Завантажити python3-partial-json-parser

Завантаження для всіх доступних архітектур
Архітектура Розмір пакунка Розмір після встановлення Файли
all 9.7 kB52.0 kB [список файлів]