feat: 添加 AI 服务,提供 AI 聊天、语音转文本和交易确认功能。

This commit is contained in:
2026-02-02 00:50:49 +08:00
parent 86e215d642
commit 8f087d690c

View File

@@ -108,7 +108,7 @@ export async function streamChatMessage(
const token = localStorage.getItem('token'); // Assuming auth token is stored here
// Use fetch directly for streaming support
const response = await fetch(`${import.meta.env.VITE_API_URL}/ai/chat/stream`, {
const response = await fetch(`${import.meta.env.VITE_API_BASE_URL}/ai/chat/stream`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',