diff --git a/backend/.env.example b/backend/.env.example index 43cb1a8..2b1db19 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -17,7 +17,7 @@ EMBEDDING_MODEL=text-embedding-v2 EMBEDDING_DIM=1024 # The questions to help users get started (multi-line). -# CONVERSATION_STARTERS= +CONVERSATION_STARTERS=本工程指什么?\n总算表有哪些费用?\n项目划分哪些内容构成?\n其他费用表有哪些内容? # The OpenAI API key to use. # OPENAI_API_KEY= diff --git a/backend/app/api/routers/chat.py b/backend/app/api/routers/chat.py index cb7036d..d014626 100644 --- a/backend/app/api/routers/chat.py +++ b/backend/app/api/routers/chat.py @@ -124,7 +124,7 @@ async def chat_config() -> ChatConfig: starter_questions = None conversation_starters = os.getenv("CONVERSATION_STARTERS") if conversation_starters and conversation_starters.strip(): - starter_questions = conversation_starters.strip().split("\n") + starter_questions = conversation_starters.strip().split("\\n") return ChatConfig(starter_questions=starter_questions)