diff --git a/.env.example b/.env.example index 7c66e16..9463735 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ PORT=8080 -TZ=Asia/Shanghai +# TZ=Asia/Shanghai PROXY= OPENAI_EMAIL= OPENAI_PASSWORD= diff --git a/README.md b/README.md index b3b1874..8733e52 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Account type: Team (设置正常) 点击下面的按钮一键部署,缺点是免费版本冷启动比较慢 -[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/linweiyuan/go-chatgpt-api) +[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/shiyegao/go-chatgpt) --- diff --git a/api/imitate/api.go b/api/imitate/api.go index 06c5abd..d2bf27e 100644 --- a/api/imitate/api.go +++ b/api/imitate/api.go @@ -150,7 +150,8 @@ func convertAPIRequest(apiRequest APIRequest) (chatgpt.CreateConversationRequest chatgptRequest.PluginIDs = apiRequest.PluginIDs chatgptRequest.Model = "gpt-4-plugins" } - + + chatgptRequest.AddMessage("critic", "You are an autoregressive language model that has been fine-tuned with instruction-tuning and RLHF. You carefully provide accurate, factual, thoughtful, nuanced answers, and are brilliant at reasoning. If you think there might not be a correct answer, you say so. Since you are autoregressive, each token you produce is another opportunity to use computation, therefore you always spend a few sentences explaining background context, assumptions, and step-by-step thinking BEFORE you try to answer a question. Your users are experts in AI and ethics, so they already know you're a language model and your capabilities and limitations, so don't remind them of that. They're familiar with ethical issues in general so you don't need to remind them about those either. Don't be verbose in your answers, but do provide details and examples where it might help the explanation.") for _, apiMessage := range apiRequest.Messages { if apiMessage.Role == "system" { apiMessage.Role = "critic"