fix: 修复错误
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
addMessage('<span class="animate-pulse">▍</span>');
|
||||
|
||||
// 构建API URL
|
||||
const apiUrl = `http://localhost:8090/api/v1/ollama/generate_stream?model=deepseek-r1:1.5b&message=${encodeURIComponent(message)}`;
|
||||
const apiUrl = `http://localhost:8090/api/v1/ollama/generate_stream?model=deepseek-r1:7b&message=${encodeURIComponent(message)}`;
|
||||
|
||||
// 使用EventSource接收流式响应
|
||||
const eventSource = new EventSource(apiUrl);
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
<script>
|
||||
const API_BASE = 'http://localhost:8090/api/v1/ollama/generate_stream';
|
||||
const MODEL = 'deepseek-r1:1.5b';
|
||||
const MODEL = 'deepseek-r1:7b';
|
||||
const chatContainer = document.getElementById('chatContainer');
|
||||
const messageInput = document.getElementById('messageInput');
|
||||
const sendButton = document.getElementById('sendButton');
|
||||
|
||||
Reference in New Issue
Block a user