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
6787f19d
authored
Jun 23, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: price
parent
64c35eaa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
client/public/docs/chatProblem.md
+4
-4
client/public/docs/intro.md
+4
-4
client/src/constants/model.ts
+3
-3
client/src/pages/api/openapi/plugin/openaiEmbedding.ts
+1
-1
client/src/pages/number/components/PayModal.tsx
+4
-4
No files found.
client/public/docs/chatProblem.md
View file @
6787f19d
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
| 计费项 | 价格: 元/ 1K tokens(包含上下文)|
| 计费项 | 价格: 元/ 1K tokens(包含上下文)|
| --- | --- |
| --- | --- |
| 知识库 - 索引 | 0.001 |
| 知识库 - 索引 | 0.001 |
| chatgpt - 对话 | 0.0
22
|
| chatgpt - 对话 | 0.0
15
|
| chatgpt16K - 对话 | 0.0
2
5 |
| chatgpt16K - 对话 | 0.0
1
5 |
| gpt4 - 对话 | 0.
5
|
| gpt4 - 对话 | 0.
1
|
| 文件拆分 | 0.0
2
5 |
| 文件拆分 | 0.0
1
5 |
**其他问题**
**其他问题**
| 交流群 | 小助手 |
| 交流群 | 小助手 |
...
...
client/public/docs/intro.md
View file @
6787f19d
...
@@ -19,10 +19,10 @@ FastGpt 项目完全开源,可随意私有化部署,去除平台风险忧虑
...
@@ -19,10 +19,10 @@ FastGpt 项目完全开源,可随意私有化部署,去除平台风险忧虑
| 计费项 | 价格: 元/ 1K tokens(包含上下文)|
| 计费项 | 价格: 元/ 1K tokens(包含上下文)|
| --- | --- |
| --- | --- |
| 知识库 - 索引 | 0.001 |
| 知识库 - 索引 | 0.001 |
| chatgpt - 对话 | 0.0
22
|
| chatgpt - 对话 | 0.0
15
|
| chatgpt16K - 对话 | 0.0
2
5 |
| chatgpt16K - 对话 | 0.0
1
5 |
| gpt4 - 对话 | 0.
5
|
| gpt4 - 对话 | 0.
1
|
| 文件拆分 | 0.0
2
5 |
| 文件拆分 | 0.0
1
5 |
### 交流群/问题反馈
### 交流群/问题反馈
...
...
client/src/constants/model.ts
View file @
6787f19d
...
@@ -31,7 +31,7 @@ export const ChatModelMap = {
...
@@ -31,7 +31,7 @@ export const ChatModelMap = {
contextMaxToken
:
4000
,
contextMaxToken
:
4000
,
systemMaxToken
:
2400
,
systemMaxToken
:
2400
,
maxTemperature
:
1.2
,
maxTemperature
:
1.2
,
price
:
2.2
price
:
1.5
},
},
[
OpenAiChatEnum
.
GPT3516k
]:
{
[
OpenAiChatEnum
.
GPT3516k
]:
{
chatModel
:
OpenAiChatEnum
.
GPT3516k
,
chatModel
:
OpenAiChatEnum
.
GPT3516k
,
...
@@ -39,7 +39,7 @@ export const ChatModelMap = {
...
@@ -39,7 +39,7 @@ export const ChatModelMap = {
contextMaxToken
:
16000
,
contextMaxToken
:
16000
,
systemMaxToken
:
8000
,
systemMaxToken
:
8000
,
maxTemperature
:
1.2
,
maxTemperature
:
1.2
,
price
:
2
.5
price
:
1
.5
},
},
[
OpenAiChatEnum
.
GPT4
]:
{
[
OpenAiChatEnum
.
GPT4
]:
{
chatModel
:
OpenAiChatEnum
.
GPT4
,
chatModel
:
OpenAiChatEnum
.
GPT4
,
...
@@ -47,7 +47,7 @@ export const ChatModelMap = {
...
@@ -47,7 +47,7 @@ export const ChatModelMap = {
contextMaxToken
:
8000
,
contextMaxToken
:
8000
,
systemMaxToken
:
4000
,
systemMaxToken
:
4000
,
maxTemperature
:
1.2
,
maxTemperature
:
1.2
,
price
:
5
0
price
:
1
0
},
},
[
OpenAiChatEnum
.
GPT432k
]:
{
[
OpenAiChatEnum
.
GPT432k
]:
{
chatModel
:
OpenAiChatEnum
.
GPT432k
,
chatModel
:
OpenAiChatEnum
.
GPT432k
,
...
...
client/src/pages/api/openapi/plugin/openaiEmbedding.ts
View file @
6787f19d
...
@@ -61,7 +61,7 @@ export async function openaiEmbedding({
...
@@ -61,7 +61,7 @@ export async function openaiEmbedding({
}
}
)
)
.
then
((
res
)
=>
({
.
then
((
res
)
=>
({
tokenLen
:
res
.
data
.
usage
.
total_tokens
||
0
,
tokenLen
:
res
.
data
?.
usage
?
.
total_tokens
||
0
,
vectors
:
res
.
data
.
data
.
map
((
item
)
=>
item
.
embedding
)
vectors
:
res
.
data
.
data
.
map
((
item
)
=>
item
.
embedding
)
}));
}));
...
...
client/src/pages/number/components/PayModal.tsx
View file @
6787f19d
...
@@ -114,10 +114,10 @@ const PayModal = ({ onClose }: { onClose: () => void }) => {
...
@@ -114,10 +114,10 @@ const PayModal = ({ onClose }: { onClose: () => void }) => {
| 计费项 | 价格: 元/ 1K tokens(包含上下文)|
| 计费项 | 价格: 元/ 1K tokens(包含上下文)|
| --- | --- |
| --- | --- |
| 知识库 - 索引 | 0.001 |
| 知识库 - 索引 | 0.001 |
| chatgpt - 对话 | 0.0
22
|
| chatgpt - 对话 | 0.0
15
|
| chatgpt16K - 对话 | 0.0
2
5 |
| chatgpt16K - 对话 | 0.0
1
5 |
| gpt4 - 对话 | 0.
5
|
| gpt4 - 对话 | 0.
1
|
| 文件拆分 | 0.0
2
5 |`
}
| 文件拆分 | 0.0
1
5 |`
}
/>
/>
</>
</>
)
}
)
}
...
...
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