You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/core
Ganondorf a147d2a200
feat(api): use `json_repair` to fix invalid json while generating structured output (#18977)
When generating JSON schema using an LLM in the structured output feature,
models may occasionally return invalid JSON, which prevents clients from correctly 
parsing the response and can lead to UI breakage.

This commit addresses the issue by introducing `json_repair` to automatically 
fix invalid JSON strings returned by the LLM, ensuring smoother functionality 
and better client-side handling of structured outputs.


Co-authored-by: lizb <lizb@sugon.com>
9 months ago
..
agent refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 9 months ago
app fix(workflow_cycle_manage): failed nodes were not updated in workflow_node_executions (#18994) 9 months ago
callback_handler fix retrival resource miss in chatflow (#18307) 10 months ago
entities fix: #18744 The model order defined in position.yaml in the Model Plugin is not taking effect. (#18756) 10 months ago
errors fix(core/errors): change base class of custom exceptions to ValueError (#11955) 1 year ago
extension feat: mypy for all type check (#10921) 1 year ago
external_data_tool chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (#12702) 1 year ago
file fix: Update prompt message content types to use Literal and add union type for content (#17136) 10 months ago
helper Http requests node add ssl verify (#18125) 10 months ago
llm_generator feat(api): use `json_repair` to fix invalid json while generating structured output (#18977) 9 months ago
memory fix: Update prompt message content types to use Literal and add union type for content (#17136) 10 months ago
model_runtime refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 9 months ago
moderation issue: #17056 : Add a reason field to the message_replace event (#17195) 10 months ago
ops refactor: Refactors repository imports structure (#18901) 9 months ago
plugin refactor(plugin/backwards_invocation/app): Remove unnecessary .value from StrEnum (#18896) 9 months ago
prompt fix: Update prompt message content types to use Literal and add union type for content (#17136) 10 months ago
rag fix depth param issue for WaterCrawl (#18839) 9 months ago
repositories refactor: Refactors repository imports structure (#18901) 9 months ago
tools fix: when cot_agent call tool like searxng lost some response content (#16781) 9 months ago
variables fix Unicode Escape Characters (#15318) 11 months ago
workflow remove unstructured api key check (#18989) 9 months ago
__init__.py chore(api/core): apply ruff reformatting (#7624) 1 year ago
hosting_configuration.py chore(provider_manager): Update hosted model's name (#14334) 11 months ago
indexing_runner.py fix full-doc mode document doesn't reindex after enable or un_archive (#16737) 11 months ago
model_manager.py feat: re-add prompt messages to result and chunks in llm (#17883) 10 months ago
provider_manager.py fix: perferred model provider not match with provider. (#18282) 10 months ago