mirror of
https://github.com/yuruotong1/autoMate.git
synced 2026-03-22 13:07:17 +08:00
更新数据结构解析
This commit is contained in:
@@ -17,7 +17,7 @@ export async function useChat(chat_messages: Array<any>){
|
||||
});
|
||||
const stream = await streamText({
|
||||
model: openai(config.llm.model),
|
||||
messages: messages,
|
||||
messages: [...messages],
|
||||
});
|
||||
|
||||
return new StreamingTextResponse(stream.textStream) // 支持流式和非流式
|
||||
|
||||
Reference in New Issue
Block a user