Skip to content

Commit

Permalink
add mine
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntu committed Oct 7, 2023
1 parent e3735f3 commit f09d5e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORT=8080
TZ=Asia/Shanghai
# TZ=Asia/Shanghai
PROXY=
OPENAI_EMAIL=
OPENAI_PASSWORD=
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
---
Expand Down
3 changes: 2 additions & 1 deletion api/imitate/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f09d5e6

Please sign in to comment.