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
e5fe670a
authored
Mar 09, 2023
by
Archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beian
parent
7807b267
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
35 deletions
+18
-35
src/components/Layout/index.tsx
+15
-0
src/constants/common.ts
+2
-34
src/pages/_app.tsx
+1
-1
No files found.
src/components/Layout/index.tsx
View file @
e5fe670a
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Box
}
from
'@chakra-ui/react'
;
import
{
Box
}
from
'@chakra-ui/react'
;
import
Link
from
'next/link'
;
import
Navbar
from
'./navbar'
;
import
Navbar
from
'./navbar'
;
import
NavbarPhone
from
'./navbarPhone'
;
import
NavbarPhone
from
'./navbarPhone'
;
import
{
useRouter
}
from
'next/router'
;
import
{
useRouter
}
from
'next/router'
;
...
@@ -79,6 +80,20 @@ const Layout = ({ children }: { children: JSX.Element }) => {
...
@@ -79,6 +80,20 @@ const Layout = ({ children }: { children: JSX.Element }) => {
</
Box
>
</
Box
>
</
Box
>
</
Box
>
)
}
)
}
<
Box
textAlign=
{
'center'
}
backgroundColor=
{
'#fff'
}
p=
{
4
}
position=
{
'absolute'
}
bottom=
{
0
}
left=
{
0
}
right=
{
0
}
>
<
Box
>
@ Make by Archer
</
Box
>
<
Link
href=
{
'https://beian.miit.gov.cn/'
}
target=
{
'_blank'
}
>
桂ICP备19010228号-1
</
Link
>
</
Box
>
</
Box
>
</
Box
>
)
:
(
)
:
(
<
Auth
>
<
Auth
>
...
...
src/constants/common.ts
View file @
e5fe670a
...
@@ -4,39 +4,7 @@ export enum EmailTypeEnum {
...
@@ -4,39 +4,7 @@ export enum EmailTypeEnum {
}
}
export
const
introPage
=
`
export
const
introPage
=
`
## 欢迎使用
Doc GPT
## 欢迎使用
鱼龙龙的日记分享
时间比较赶,介绍没来得及完善,先直接上怎么使用:
在这里,鱼龙龙使用了它历史的日记作为训练数据,训练了专属的 GPT 对话模型,你可以和它聊天,感受它个人性化的风格。
1. 使用邮箱注册账号。
2. 进入账号页面,添加关联账号,目前只有 openai 的账号可以添加,直接去 openai 官网,把 API Key 粘贴过来。
3. 进入模型页,创建一个模型,建议直接用 ChatGPT。
4. 在模型列表点击【对话】,即可使用 API 进行聊天。
### 模型配置
1. **提示语**:会在每个对话框的第一句自动加入,用于限定该模型的对话内容。
2. **单句最大长度**:每个聊天,单次输入内容的最大长度。
3. **上下文最大长度**:每个聊天,最多的轮数除以2,建议设置为偶数。可以持续聊天,但是旧的聊天内容会被截断,AI 就不会知道被截取的内容。
例如:上下文最大长度为6。在第 4 轮对话时,第一轮对话的内容不会被计入。
4. **过期时间**:生成对话框后,这个对话框多久过期。
5. **聊天最大加载次数**:单个对话框最多被加载几次,设置为-1代表不限制,正数代表只能加载 n 次,防止被盗刷。
### 对话框介绍
1. 每个对话框以 windowId 作为标识。
2. 每次点击【对话】,都会生成新的对话框,无法回到旧的对话框。对话框内刷新,会恢复对话内容。
3. 直接分享对话框(网页)的链接给朋友,会共享同一个对话内容。但是!!!千万不要两个人同时用一个链接,会串味,还没解决这个问题。
4. 如果想分享一个纯的对话框,可以把链接里 windowId 参数去掉。例如:
* 当前网页链接:http://docgpt.ahapocket.cn/chat?chatId=6402c9f64cb5d6283f764&windowId=6402c94cb5d6283f76fb49
* 分享链接应为:http://docgpt.ahapocket.cn/chat?chatId=6402c9f64cb5d6283f764
### 其他问题
还有其他问题,可以加我 wx: YNyiqi,拉个交流群大家一起聊聊。
`
;
`
;
src/pages/_app.tsx
View file @
e5fe670a
...
@@ -30,7 +30,7 @@ export default function App({ Component, pageProps }: AppProps) {
...
@@ -30,7 +30,7 @@ export default function App({ Component, pageProps }: AppProps) {
return
(
return
(
<>
<>
<
Head
>
<
Head
>
<
title
>
Doc GPT
</
title
>
<
title
>
日记分享
</
title
>
<
meta
name=
"description"
content=
"Generated by Doc GPT"
/>
<
meta
name=
"description"
content=
"Generated by Doc GPT"
/>
<
meta
<
meta
name=
"viewport"
name=
"viewport"
...
...
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