From b57b1a69261b8ed8e632d83ed69bc11a09669c1b Mon Sep 17 00:00:00 2001 From: Stream Date: Tue, 27 Jan 2026 00:09:11 +0800 Subject: [PATCH] feat: generate better instructions --- api/core/llm_generator/llm_generator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/core/llm_generator/llm_generator.py b/api/core/llm_generator/llm_generator.py index 19c8c29ef0..9a5a835e95 100644 --- a/api/core/llm_generator/llm_generator.py +++ b/api/core/llm_generator/llm_generator.py @@ -588,7 +588,7 @@ class LLMGenerator: max_description_chars=120, ) - return f"""Suggest exactly 3 short questions that would help generate code for the target parameter. + return f"""Suggest exactly 3 short instructions that would help generate code for the target parameter. ## Target Parameter {parameter_block} @@ -597,10 +597,10 @@ class LLMGenerator: {available_vars_block} ## Constraints -- Output exactly 3 questions. +- Output exactly 3 instructions. - Use {language}. -- Keep each question short and practical. -- Do not include code or variable syntax in the questions. +- Keep each instruction short and practical. +- Do not include code or variable syntax in the instructions. """ @classmethod