Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPT 4 之后会对系统 Prompt 会非常敏感 相对于 GPT 3 是一个长足的进步 我们现在能不能提供一个接口留给系统 Prompt? #14

Closed
randomwangran opened this issue Mar 20, 2023 · 2 comments

Comments

@randomwangran
Copy link

可以参考下方的函数

(system-prompt (or (cdr (assoc prompt-identifier chatgpt-arcana-system-prompts-alist))
                            chatgpt-arcana-fallback-system-prompt))
                            
(defcustom chatgpt-arcana-system-prompts-alist
  '((programming-prompt . "You are a large language model living inside Emacs, and the perfect programmer. You may only respond with concise code unless explicitly asked. ")
    (writing-prompt . "You are a large language model living inside Emacs, and an excellent writing assistant. Respond concisely and carry out instructions. ")
    (chat-prompt . "You are a large language model living inside Emacs, and an excellent conversation partner. Respond concisely. "))
  "An alist that maps system prompt identifiers to actual system prompts."
  :type '(alist :key-type symbol :value-type string)
  :group 'chatgpt-arcana)                            

之后可以接入类似于这种别人提供好的接口

https://github.com/f/awesome-chatgpt-prompts/blob/main/prompts.csv

@manateelazycat
Copy link
Owner

现在不是每一个函数都有一个系统角色的设置吗?

manateelazycat added a commit that referenced this issue Mar 21, 2023
@manateelazycat
Copy link
Owner

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants