|
|
@@ -654,7 +654,7 @@ export function ChatActions(props: {
|
|
|
}
|
|
|
let url = '';
|
|
|
if (chatStore.chatMode === 'LOCAL') {
|
|
|
- url = '/deepseek/api/async/completions';
|
|
|
+ url = '/deepseek/api/free/async/completions';
|
|
|
} else {
|
|
|
url = '/bigmodel/api/async/completions';
|
|
|
}
|
|
|
@@ -789,13 +789,13 @@ export function ChatActions(props: {
|
|
|
/>
|
|
|
)} */}
|
|
|
|
|
|
- {/* {!props.hitBottom && (
|
|
|
+ {!props.hitBottom && (
|
|
|
<ChatAction
|
|
|
onClick={props.scrollToBottom}
|
|
|
text={Locale.Chat.InputActions.ToBottom}
|
|
|
icon={<BottomIcon />}
|
|
|
/>
|
|
|
- )} */}
|
|
|
+ )}
|
|
|
|
|
|
{/* {props.hitBottom && (
|
|
|
<ChatAction
|
|
|
@@ -1138,10 +1138,11 @@ function _Chat() {
|
|
|
try {
|
|
|
let url = null;
|
|
|
if (selectedFruit === 'LOCAL') {
|
|
|
- url = '/deepseek/api/presets';
|
|
|
- } else {
|
|
|
- url = '/bigmodel/api/presets';
|
|
|
- }
|
|
|
+ url = '/deepseek/api/free//presets';
|
|
|
+ }
|
|
|
+ // else {
|
|
|
+ // url = '/bigmodel/api/presets';
|
|
|
+ // }
|
|
|
const res = await api.get(url + `/${appId}`);
|
|
|
setQuestionList(res.data);
|
|
|
} catch (error) {
|
|
|
@@ -1775,10 +1776,13 @@ function _Chat() {
|
|
|
const [pageLoading, setPageLoading] = useState(false);
|
|
|
const [list, setList] = useState([]);
|
|
|
|
|
|
+/**
|
|
|
+* 初始化函数,用于加载页面数据
|
|
|
+*/
|
|
|
const init = async () => {
|
|
|
setPageLoading(true);
|
|
|
try {
|
|
|
- const res: any = await api.post('/deepseek/api/slicePage', {
|
|
|
+ const res: any = await api.post('/deepseek/api/free/slicePage', {
|
|
|
knowledge_id: drawerData.knowledge_id,
|
|
|
chunk_info: drawerData.chunk_info,
|
|
|
pageNum: 1,
|
|
|
@@ -2082,6 +2086,7 @@ function _Chat() {
|
|
|
<div style={{ marginTop: 10 }}>
|
|
|
<Collapse
|
|
|
bordered={false}
|
|
|
+ style={{ background: '#fff' }}
|
|
|
expandIcon={({ isActive }) => <CaretRightOutlined rotate={isActive ? 90 : 0} />}
|
|
|
items={[
|
|
|
{
|
|
|
@@ -2339,7 +2344,7 @@ function _Chat() {
|
|
|
/>
|
|
|
</label>
|
|
|
</div>
|
|
|
- <div style={{ paddingBottom: 12, textAlign: 'center', color: '#888888', fontSize: 12 }}>
|
|
|
+ <div style={{ paddingBottom: 12, textAlign: 'center', background:'rgba(155, 155, 255, .2)',backdropFilter: 'blur(1px)', color: '#000', fontSize: 12 }}>
|
|
|
内容由AI生成,仅供参考
|
|
|
</div>
|
|
|
{showExport && (
|
|
|
@@ -2368,7 +2373,8 @@ export function Chat() {
|
|
|
const search = location.search;
|
|
|
const params = new URLSearchParams(search);
|
|
|
const showMenu = params.get('showMenu');
|
|
|
- const chatMode = params.get('chatMode');
|
|
|
+ // const chatMode = params.get('chatMode');
|
|
|
+ const chatMode = 'LOCAL';
|
|
|
|
|
|
if (showMenu) {
|
|
|
if (showMenu === 'true') {
|