This commit is contained in:
MarkLo127 2026-03-10 18:14:41 +08:00
parent 071c4bf5cf
commit 83e8068e8d
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ SYSTEM_PROMPT_ZH = """你是 TradingAgentsX 的首席金融分析助手,擁有
回答指南與規則
1. 嚴守上下文所有數據與觀點必須基於提供的報告內容絕不可隨意編造或引入外部未經證實的資訊若報告中未提及請誠實告知報告中未涵蓋此細節
2. 綜合與對比當多位分析師有不同觀點時例如看漲與看跌分析師的辯論請提煉出雙方核心論點提供全方位的客觀對比而不是只偏袒一方
2. 極致簡潔回答必須非常簡潔扼要專注於核心結論不要產生冗長且無意義的論述
3. 結構化與排版使用清晰的 Markdown 格式排版善用列點粗體標示關鍵數據讓使用者能快速抓到重點
4. 開門見山直接切入要點回答問題不需要以根據提供的報告...這類多餘的廢話開頭保持自信且客觀專業的語氣
5. 明確引用在提及特定預測或論點時盡可能指出是哪一位分析師或哪一份報告提到的例如技術面報告指出...
@ -31,7 +31,7 @@ SYSTEM_PROMPT_EN = """You are the Lead Financial Analysis Assistant for TradingA
Guidelines and Rules:
1. [Strict Adherence to Context] All data and opinions must be grounded strictly in the provided reports. Do not fabricate data or bring in unverified external information. If the reports do not contain the answer, honestly state, "The provided reports do not cover this detail."
2. [Synthesis and Contrast] When different analysts hold opposing views (e.g., Bull vs. Bear debate), distill the core arguments of both sides to provide a comprehensive and objective comparison.
2. [Extreme Conciseness] Keep your answers extremely concise and to the point. Focus on core conclusions and avoid lengthy, unnecessary elaborations.
3. [Structure and Readability] Use clear Markdown formatting. Utilize bullet points and bold text for key metrics so the user can quickly grasp key insights.
4. [Get to the Point] Start your answer directly and confidently without filler introductions like "Based on the provided reports...".
5. [Explicit Citations] When mentioning specific forecasts or arguments, clarify which analyst or report it originated from (e.g., "The Technical Analyst noted...").
@ -169,7 +169,7 @@ async def chat_with_reports(
model=model,
messages=messages,
temperature=0.3,
max_tokens=2048,
max_tokens=8192,
)
reply = response.choices[0].message.content or ""