mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
feat(backend): 移除 OpenAI API 中的 Markdown 输出
- 删除了 OpenAI API 请求中的 Markdown 输出要求 - 注释掉了日志记录响应内容的代码行- 在 README 中添加了关于 AI 股票分析功能的重大更新说明
This commit is contained in:
parent
db4a2b5fa9
commit
1d58d6b224
@ -2,6 +2,9 @@
|
||||
### 去他妈的A股!!!
|
||||

|
||||
|
||||
## BIG NEWS !!! 重大更新!!!
|
||||
- 2025.01.17 新增AI大模型分析股票功能
|
||||
|
||||
## 简介
|
||||
- 本项目基于Wails和NaiveUI,纯属无聊,仅供娱乐,不喜勿喷。
|
||||
- 开发环境主要基于Windows10+,其他平台未测试或功能受限。
|
||||
@ -19,7 +22,8 @@
|
||||

|
||||
### 钉钉报警通知
|
||||

|
||||
|
||||
### AI分析股票
|
||||

|
||||
|
||||
## About
|
||||
|
||||
|
@ -2,7 +2,6 @@ package data
|
||||
|
||||
import (
|
||||
"github.com/go-resty/resty/v2"
|
||||
"go-stock/backend/logger"
|
||||
)
|
||||
|
||||
// @Author spark
|
||||
@ -95,7 +94,7 @@ func (o OpenAi) NewChat(stock string) string {
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "点评一下" + stock + ",以Markdown输出",
|
||||
"content": "点评一下" + stock,
|
||||
},
|
||||
},
|
||||
}).
|
||||
@ -103,6 +102,6 @@ func (o OpenAi) NewChat(stock string) string {
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
logger.SugaredLogger.Infof("%v", res.Choices[0].Message.Content)
|
||||
//logger.SugaredLogger.Infof("%v", res.Choices[0].Message.Content)
|
||||
return res.Choices[0].Message.Content
|
||||
}
|
||||
|
BIN
build/screenshot/img_10.png
Normal file
BIN
build/screenshot/img_10.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
Loading…
x
Reference in New Issue
Block a user