feat: 文案内容
This commit is contained in:
parent
17364e9da3
commit
e132c622a6
@ -1,5 +1,7 @@
|
|||||||
# Doc GPT
|
# Doc GPT
|
||||||
|
|
||||||
|
Doc GPT 允许你是用自己的 openai API KEY 来快速的调用 openai 接口,包括 GPT3 及其微调方法,以及最新的 gpt3.5 接口。
|
||||||
|
|
||||||
## 初始化
|
## 初始化
|
||||||
复制 .env.template 成 .env.local ,填写核心参数
|
复制 .env.template 成 .env.local ,填写核心参数
|
||||||
|
|
||||||
|
|||||||
@ -356,7 +356,7 @@
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
word-break: break-all;
|
||||||
pre {
|
pre {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@ -6,6 +6,8 @@ export enum EmailTypeEnum {
|
|||||||
export const introPage = `
|
export const introPage = `
|
||||||
## 欢迎使用 Doc GPT
|
## 欢迎使用 Doc GPT
|
||||||
|
|
||||||
|
[Git 仓库](https://github.com/c121914yu/DocGPT)
|
||||||
|
|
||||||
时间比较赶,介绍没来得及完善,先直接上怎么使用:
|
时间比较赶,介绍没来得及完善,先直接上怎么使用:
|
||||||
1. 使用邮箱注册账号。
|
1. 使用邮箱注册账号。
|
||||||
2. 进入账号页面,添加关联账号,目前只有 openai 的账号可以添加,直接去 openai 官网,把 API Key 粘贴过来。
|
2. 进入账号页面,添加关联账号,目前只有 openai 的账号可以添加,直接去 openai 官网,把 API Key 粘贴过来。
|
||||||
|
|||||||
@ -20,10 +20,13 @@ export const jsonRes = (
|
|||||||
|
|
||||||
let msg = message;
|
let msg = message;
|
||||||
if ((code < 200 || code >= 400) && !message) {
|
if ((code < 200 || code >= 400) && !message) {
|
||||||
msg =
|
msg = error?.message || '请求错误';
|
||||||
typeof error === 'string'
|
if (typeof error === 'string') {
|
||||||
? error
|
msg = error;
|
||||||
: openaiError[error?.response?.data?.message] || error?.message || '请求错误';
|
} else if (error?.response?.data?.message in openaiError) {
|
||||||
|
msg = openaiError[error?.response?.data?.message];
|
||||||
|
}
|
||||||
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
console.error(msg);
|
console.error(msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user