Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/assistant/util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Cookies from 'js-cookie'
// API请求选项接口
export interface ChatApiOptions {
model: string
Expand Down Expand Up @@ -254,7 +255,9 @@ export async function sendStreamChatRequest(
const response = await fetch(SERVER_MODEL_API_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
Authorization: Cookies.get('bizy_token') || '',
...(options as any)?.headers
},
body: JSON.stringify(requestBody),
signal: abortController.signal // 添加中止信号
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.13
1.2.14
Loading