UI bugfixes with boss
This commit is contained in:
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
from .draft_validator import (
|
||||
normalize_draft_to_shape,
|
||||
parse_json_from_llm_text,
|
||||
shuffle_options_in_questions,
|
||||
validate_and_normalize_draft,
|
||||
)
|
||||
from .llm_client import LlmError, chat_completion_text_content, get_llm_config
|
||||
@@ -64,6 +65,7 @@ def generation_for_import_document(extracted_text: str, user_hint: str = '', sha
|
||||
draft = validate_and_normalize_draft(parsed)
|
||||
if shape:
|
||||
draft = normalize_draft_to_shape(draft, shape)
|
||||
shuffle_options_in_questions(draft['questions'])
|
||||
return {
|
||||
'available': True,
|
||||
'message': (
|
||||
|
||||
Reference in New Issue
Block a user