|
@@ -223,7 +223,7 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
const appId = globalStore.selectedAppId;
|
|
const appId = globalStore.selectedAppId;
|
|
|
if (appId) {
|
|
if (appId) {
|
|
|
if (chatMode === 'LOCAL') {
|
|
if (chatMode === 'LOCAL') {
|
|
|
- url = `/takai/api/dialog/list/${appId}`;
|
|
|
|
|
|
|
+ url = `/deepseek/api/dialog/list/${appId}`;
|
|
|
} else {
|
|
} else {
|
|
|
url = `/bigmodel/api/dialog/list/${appId}`;
|
|
url = `/bigmodel/api/dialog/list/${appId}`;
|
|
|
}
|
|
}
|
|
@@ -261,7 +261,7 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
let blob = null;
|
|
let blob = null;
|
|
|
if (getType() === 'bigModel') {
|
|
if (getType() === 'bigModel') {
|
|
|
if (chatMode === 'LOCAL') {
|
|
if (chatMode === 'LOCAL') {
|
|
|
- blob = await api.post(`/takai/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
|
|
|
|
|
+ blob = await api.post(`/deepseek/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
|
} else {
|
|
} else {
|
|
|
blob = await api.post(`/bigmodel/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
blob = await api.post(`/bigmodel/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
|
}
|
|
}
|
|
@@ -285,7 +285,7 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
try {
|
|
try {
|
|
|
if (getType() === 'bigModel') {
|
|
if (getType() === 'bigModel') {
|
|
|
if (chatMode === 'LOCAL') {
|
|
if (chatMode === 'LOCAL') {
|
|
|
- await api.delete(`/takai/api/dialog/del/${child.key}`);
|
|
|
|
|
|
|
+ await api.delete(`/deepseek/api/dialog/del/${child.key}`);
|
|
|
await fetchChatList(chatMode);
|
|
await fetchChatList(chatMode);
|
|
|
} else {
|
|
} else {
|
|
|
await api.delete(`/bigmodel/api/dialog/del/${child.key}`);
|
|
await api.delete(`/bigmodel/api/dialog/del/${child.key}`);
|
|
@@ -414,7 +414,7 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
let url = ``;
|
|
let url = ``;
|
|
|
if (getType() === 'bigModel') {
|
|
if (getType() === 'bigModel') {
|
|
|
if (chatStore.chatMode === 'LOCAL') {
|
|
if (chatStore.chatMode === 'LOCAL') {
|
|
|
- url = `/takai/api/dialog/detail/${key}`;
|
|
|
|
|
|
|
+ url = `/deepseek/api/dialog/detail/${key}`;
|
|
|
} else {
|
|
} else {
|
|
|
url = `/bigmodel/api/dialog/detail/${key}`;
|
|
url = `/bigmodel/api/dialog/detail/${key}`;
|
|
|
}
|
|
}
|
|
@@ -472,7 +472,7 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
try {
|
|
try {
|
|
|
if (getType() === 'bigModel') {
|
|
if (getType() === 'bigModel') {
|
|
|
if (chatStore.chatMode === 'LOCAL') {
|
|
if (chatStore.chatMode === 'LOCAL') {
|
|
|
- await api.put(`/takai/api/dialog/update`, {
|
|
|
|
|
|
|
+ await api.put(`/deepseek/api/dialog/update`, {
|
|
|
id: values.dialogId,
|
|
id: values.dialogId,
|
|
|
dialogName: values.dialogName
|
|
dialogName: values.dialogName
|
|
|
});
|
|
});
|