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

Default System Prompt for Different Models #3690

Closed
wants to merge 7 commits into from

Conversation

Algorithm5838
Copy link
Contributor

@Algorithm5838 Algorithm5838 commented Dec 28, 2023

To create a universal system prompt that can be used with non-OpenAI models, compatible with platforms such as OpenRouter or one-api, including Gemini Pro or other open-source models.
It would check if the model starts with "gpt". If it does, it would use the ChatGPT system prompt; otherwise, it would use this prompt:

You are a helpful assistant.
Current model: {{model}}
Current time: {{time}}

With this prompt, the model would know the current time and the name of the model, which would be beneficial.

@H0llyW00dzZ
Copy link
Contributor

by the way that's gpt default system prompt is support for other language
example is language chinese or indonesia

Copy link

vercel bot commented Jan 26, 2024

@Algorithm5838 is attempting to deploy a commit to the NextChat Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Your build has completed!

Preview deployment

@Algorithm5838 Algorithm5838 deleted the patch-prompt branch February 3, 2024 05:37
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

Successfully merging this pull request may close these issues.

2 participants