From 51cc21107ae835ba9de7a585aa22abb9ca328166 Mon Sep 17 00:00:00 2001 From: ArvinLovegood Date: Tue, 8 Apr 2025 17:09:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(data):=E4=BB=8E=E9=9B=AA=E7=90=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=8E=B7=E5=8F=96=E8=B4=A2=E5=8A=A1=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 GetFinancialReportsByXUEQIU 函数,用于从雪球获取财务报告 - 优化 GetTableMarkdown 函数,改进表格解析逻辑 - 更新测试用例,验证新接口的正确性- 重构原有 GetFinancialReports函数,提高代码可维护性 --- backend/data/openai_api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/data/openai_api.go b/backend/data/openai_api.go index 4845d5f..db1f993 100644 --- a/backend/data/openai_api.go +++ b/backend/data/openai_api.go @@ -284,7 +284,6 @@ func (o OpenAi) NewChatStream(stock, stockCode, userQuestion string, sysPromptId if checkIsIndexBasic(stock) { return } - messages := GetFinancialReportsByXUEQIU(stockCode, o.CrawlTimeOut) if messages == nil || len(*messages) == 0 { logger.SugaredLogger.Error("获取股票财报失败")