From 82eed50f8f00db726d470d138aea05b2e29265bd Mon Sep 17 00:00:00 2001 From: xiang <1984871009@qq.com> Date: Sun, 4 Jun 2023 12:45:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8gpt4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 5736586..5317fb2 100644 --- a/README.md +++ b/README.md @@ -104,21 +104,6 @@ interface options { } ``` -#### forefront options - -``` -chatId?: string; -actionType?: Action; // 'new' or 'continue' -defaultPersona?: string; -gptmodel?: Model; // gpt-4 or gpt-3.5-turbo -resignup?: number; // default 0 if set 1, auto sign up when gpt4 times use up -// event: error -// data: GPT-4 rate limit exceeded (>5 messages every 3 hours). Time remaining: 179 minutes -// if you see this try set resignup=1 or use gpt-3.5-turbo - -// if you want chat with context, set actionType=continue and chatId={Defined constant uuid} -``` - ### test now! common request @@ -132,11 +117,8 @@ curl '127.0.0.1:3000/ask/stream?messages=[{"role":"system","content":"IMPORTANT: # test aidream curl "http://127.0.0.1:3000/ask?prompt=hello&model=aidream" -# test default model chat.forefront.at -# !!!!ATTENTION!!!! It Unstable when the first time use, but support GPT4 -# !!!!ATTENTION!!!! You may got timeout when you run this project ant req forefront the first time. -# !!!!ATTENTION!!!! It will run quickly in your next time; -curl "http://127.0.0.1:3000/ask?prompt=hello&model=forefront&gptmodel=gpt-4&resignup=1" +# test chat.forefront.at Default,use gpt4 +curl "http://127.0.0.1:3000/ask?prompt=hello&model=forefront" # test you.com curl "http://127.0.0.1:3000/ask?prompt=hello&model=you" @@ -148,10 +130,7 @@ request event-stream # test default model aidream curl "http://127.0.0.1:3000/ask/stream?prompt=hello&model=aidream" -# test chat.forefront.at -# !!!!ATTENTION!!!! It Unstable when the first time use, but support GPT4 -# !!!!ATTENTION!!!! You may got timeout when you run this project ant req forefront the first time. -# !!!!ATTENTION!!!! It will run quickly in your next time; +# test chat.forefront.at Default,use gpt4 curl "http://127.0.0.1:3000/ask/stream?prompt=hello&model=forefront&gptmodel=gpt-4&resignup=1" # test you