-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat(frontend): 实现 AI聊天流功能
- 新增 NewChatStream 函数,用于接收实时聊天流数据 - 在 App 组件中添加 NewChatStream 方法处理聊天流 - 修改前端 Stock 组件,支持实时显示 AI 聊天流结果 - 优化后端 OpenAi 结构,增加 NewChatStream 方法获取流式响应
- v2025.3.1.1-alpha
- v2025.2.28.2-alpha
- v2025.2.28.1-alpha
- v2025.2.26.1-alpha
- v2025.2.25.3-alpha
- v2025.2.25.1-alpha
- v2025.2.24.1-alpha
- v2025.2.23.4-alpha
- v2025.2.23.3-alpha
- v2025.2.23.2-alpha
- v2025.2.23.1-alpha
- v2025.2.22.1-alpha
- v2025.2.21.3-alpha
- v2025.2.21.2-alpha
- v2025.2.19.1-alpha
- v2025.2.18.3-alpha
- v2025.2.17.2-alpha
- v2025.2.17.1-alpha
- v2025.2.16.1-alpha
- v2025.2.15.1-alpha
- v2025.2.14.1-alpha
- v2025.2.13.2-alpha
- v2025.2.13.1-alpha
- v2025.2.12.10-alpha
- v2025.2.12.9-alpha
- v2025.2.12.8-alpha
- v2025.2.12.7-alpha
- v2025.2.12.6-alpha
- v2025.2.12.5-alpha
- v2025.2.12.4-alpha
- v2025.2.12.3-alpha
- v2025.2.12.2-alpha
- v2025.2.12.1-alpha
- v2025.2.11.5-alpha
- v2025.2.11.4-alpha
- v2025.2.11.3-alpha
- v2025.2.11.2-alpha
- v2025.2.11.1-alpha
- v2025.2.10.3-alpha
- v2025.2.10.2
- v2025.2.10.2-alpha
- v2025.2.10.1
- v2025.2.9.7
- v2025.2.9.6
- v2025.2.9.4
- v2025.2.9.3
- v2025.2.9.2
- v2025.2.9.1
- v2025.2.8.8
- v2025.2.8.7
- v2025.2.8.6
- v2025.2.8.5
- v2025.2.8.4
- v2025.2.8.4-alpha
- v2025.2.8.3
- v2025.2.8.3-alpha
- v2025.2.8.2
- v2025.2.8.2-alpha
- v2025.2.8.1
- v2025.2.8.1-alpha
- v2025.2.7.2
- v2025.2.7.1
- v2025.2.6.3
- v2025.2.6.2
- v2025.2.6.1
- v2025.2.5
- v2025.2.4.3
- v2025.2.4.2
- v2025.2.4.1
- v2025.2.3.1
- v2025.2.3
- v2025.1.31.7
- v2025.1.31.6
- v2025.1.31.5
- v2025.1.31.4
- v2025.1.31.3
- v2025.1.31.2
- v2025.1.31.1
- v2025.1.26.2
- v2025.1.26.1
- v2025.1.23.1
- v2025.1.22.3
- v2025.1.22.2
- v2025.1.22.1
- v2025.1.2.2
- v2025.1.2.1
spark
committed
Jan 22, 2025
1 parent
9cd6761
commit dadfe1c
Showing
6 changed files
with
128 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
package data | ||
|
||
import ( | ||
"go-stock/backend/db" | ||
"testing" | ||
) | ||
|
||
func TestNewDeepSeekOpenAiConfig(t *testing.T) { | ||
db.Init("../../data/stock.db") | ||
ai := NewDeepSeekOpenAi() | ||
ai.NewChat("闻泰科技") | ||
|
||
res := ai.NewChatStream("闻泰科技") | ||
for { | ||
select { | ||
case msg := <-res: | ||
if msg == "" { | ||
return | ||
} | ||
t.Log(msg) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters