Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
c7d0975f
authored
Aug 20, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bill range
parent
006b1be2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
client/public/docs/versionIntro.md
+6
-7
client/src/pages/account/components/OpenAIAccountModal.tsx
+1
-2
client/src/pages/api/openapi/v1/chat/completions.ts
+3
-3
No files found.
client/public/docs/versionIntro.md
View file @
c7d0975f
### Fast GPT V4.
0
### Fast GPT V4.
1
1.
全新交互,增加采用模块组合的方式构建知识库,同时保留表单的简易模式。
1.
新增 - 高级编排导入导出功能
2.
问题分类 - 可以对用户的问题进行分类,再执行不同的操作。
2.
优化对话存储结构
3.
对话引导 - 增加开场引导和变量,提高对话可玩性。
3.
优化日志存储
4.
新增 - 每轮对话均可展示完整的上下文状态。
4.
[
点击查看高级编排介绍文档
](
https://doc.fastgpt.run/docs/category/flow-modules
)
5.
新增 - 网页嵌入(简单版),可直接接入现有网页。在 【应用详情-外部使用-创建新链接-嵌入网页】 中获取嵌入脚本。
5.
填写个人 OpenAI 账号后,分享和 API 功能也不会走平台余额扣费。
6.
新增 - 个人 openai 账号可以使用网页上 OpenAI 对话模型。
client/src/pages/account/components/OpenAIAccountModal.tsx
View file @
c7d0975f
...
@@ -32,8 +32,7 @@ const OpenAIAccountModal = ({
...
@@ -32,8 +32,7 @@ const OpenAIAccountModal = ({
<
MyModal
isOpen
onClose=
{
onClose
}
title=
{
t
(
'user.OpenAI Account Setting'
)
}
>
<
MyModal
isOpen
onClose=
{
onClose
}
title=
{
t
(
'user.OpenAI Account Setting'
)
}
>
<
ModalBody
>
<
ModalBody
>
<
Box
fontSize=
{
'sm'
}
color=
{
'myGray.500'
}
>
<
Box
fontSize=
{
'sm'
}
color=
{
'myGray.500'
}
>
如果你填写了该内容,在线上平台使用 OpenAI Chat
如果你填写了该内容,在线上平台使用 OpenAI Chat 模型不会计费(不包含知识库训练、索引生成)
模型不会计费(不包含知识库训练、索引生成、分享窗口和 API 调用)
</
Box
>
</
Box
>
<
Flex
alignItems=
{
'center'
}
mt=
{
5
}
>
<
Flex
alignItems=
{
'center'
}
mt=
{
5
}
>
<
Box
flex=
{
'0 0 65px'
}
>
API Key:
</
Box
>
<
Box
flex=
{
'0 0 65px'
}
>
API Key:
</
Box
>
...
...
client/src/pages/api/openapi/v1/chat/completions.ts
View file @
c7d0975f
...
@@ -94,9 +94,9 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
...
@@ -94,9 +94,9 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
if
(
!
user
)
{
if
(
!
user
)
{
throw
new
Error
(
'Account is error'
);
throw
new
Error
(
'Account is error'
);
}
}
if
(
authType
===
AuthUserTypeEnum
.
apikey
||
shareId
)
{
//
if (authType === AuthUserTypeEnum.apikey || shareId) {
user
.
openaiAccount
=
undefined
;
//
user.openaiAccount = undefined;
}
//
}
appId
=
appId
?
appId
:
authAppid
;
appId
=
appId
?
appId
:
authAppid
;
if
(
!
appId
)
{
if
(
!
appId
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment