|
|
@@ -51,6 +51,7 @@ export class BigModelApi implements LLMApi {
|
|
|
const params = {
|
|
|
appId: options.config.appId,// 应用id
|
|
|
prompt: userMessages,
|
|
|
+ chat_id: options.config.chat_id,
|
|
|
// 进阶配置
|
|
|
request_id: 'jkec2024-knowledge-base',
|
|
|
returnType: undefined,
|
|
|
@@ -152,6 +153,10 @@ export class BigModelApi implements LLMApi {
|
|
|
if (info.event === 'finish') {
|
|
|
const chatMode = useChatStore.getState().chatMode;
|
|
|
if (chatMode === 'LOCAL') {// 切片
|
|
|
+ useChatStore.getState().updateCurrentSession((se) => {
|
|
|
+ console.log('update chat_id', info.id);
|
|
|
+ se.chat_id = info.id;
|
|
|
+ });
|
|
|
sliceInfoPromise = (async () => {
|
|
|
try {
|
|
|
const res: any = await api.get(`deepseek/api/slice/search/${info.id}`);
|