This commit is contained in:
archer
2023-07-17 20:17:50 +08:00
parent dc1599ba3c
commit 44e360b61b
13 changed files with 76 additions and 52 deletions

View File

@@ -69,15 +69,15 @@ const chatTemplate = ({
value: model,
list: [
{
label: 'Gpt35-4k',
label: 'FastAI-4k',
value: 'gpt-3.5-turbo'
},
{
label: 'Gpt35-16k',
label: 'FastAI-16k',
value: 'gpt-3.5-turbo-16k'
},
{
label: 'Gpt4',
label: 'FastAI-Plus',
value: 'gpt-4'
}
],
@@ -348,15 +348,15 @@ const kbTemplate = ({
value: model,
list: [
{
label: 'Gpt35-4k',
label: 'FastAI-4k',
value: 'gpt-3.5-turbo'
},
{
label: 'Gpt35-16k',
label: 'FastAI-16k',
value: 'gpt-3.5-turbo-16k'
},
{
label: 'Gpt4',
label: 'FastAI-Plus',
value: 'gpt-4'
}
],

View File

@@ -18,25 +18,25 @@ export type InitDateResponse = {
};
const defaultmodels = {
'Gpt35-4k': {
'FastAI-4k': {
model: 'gpt-3.5-turbo',
name: 'Gpt35-4k',
name: 'FastAI-4k',
contextMaxToken: 4000,
systemMaxToken: 2400,
maxTemperature: 1.2,
price: 1.5
},
'Gpt35-16k': {
'FastAI-16k': {
model: 'gpt-3.5-turbo',
name: 'Gpt35-16k',
name: 'FastAI-16k',
contextMaxToken: 16000,
systemMaxToken: 8000,
maxTemperature: 1.2,
price: 3
},
Gpt4: {
'FastAI-Plus': {
model: 'gpt-4',
name: 'Gpt4',
name: 'FastAI-Plus',
contextMaxToken: 8000,
systemMaxToken: 4000,
maxTemperature: 1.2,
@@ -44,9 +44,9 @@ const defaultmodels = {
}
};
const defaultQaModels = {
'Gpt35-16k': {
'FastAI-16k': {
model: 'gpt-3.5-turbo',
name: 'Gpt35-16k',
name: 'FastAI-16k',
maxToken: 16000,
price: 3
}

View File

@@ -227,8 +227,6 @@ const AppEdit = ({ app, fullScreen, onFullScreen }: Props) => {
const { mutate: onclickSave, isLoading } = useRequest({
mutationFn: () => {
console.log(flow2Modules());
return putAppById(app._id, {
modules: flow2Modules()
});

View File

@@ -32,13 +32,13 @@ const PayModal = ({ onClose }: { onClose: () => void }) => {
try {
// 获取支付二维码
const res = await getPayCode(inputVal);
new QRCode(document.getElementById('payQRCode'), {
new window.QRCode(document.getElementById('payQRCode'), {
text: res.codeUrl,
width: 128,
height: 128,
colorDark: '#000000',
colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.H
correctLevel: window.QRCode.CorrectLevel.H
});
setPayId(res.payId);
} catch (err) {
@@ -114,9 +114,9 @@ const PayModal = ({ onClose }: { onClose: () => void }) => {
| 计费项 | 价格: 元/ 1K tokens(包含上下文)|
| --- | --- |
| 知识库 - 索引 | 0.001 |
| chatgpt - 对话 | 0.015 |
| chatgpt16K - 对话 | 0.03 |
| gpt4 - 对话 | 0.45 |
| FastAI4k - 对话 | 0.015 |
| FastAI16k - 对话 | 0.03 |
| FastAI-Plus - 对话 | 0.45 |
| 文件拆分 | 0.03 |`}
/>
</>