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

Use System Prompt for OpenAI API #15

Open
dzoba opened this issue May 2, 2023 · 2 comments
Open

Use System Prompt for OpenAI API #15

dzoba opened this issue May 2, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@dzoba
Copy link
Owner

dzoba commented May 2, 2023

Right now we don't really use the chat history when we talk to OpenAI. It would be better to set up a system prompt and keep a history of chats when communicating with the API.

@dzoba dzoba added the good first issue Good for newcomers label May 2, 2023
@Anurag-Raut
Copy link

Could you please elaborate more on System Prompt.

@dzoba
Copy link
Owner Author

dzoba commented May 6, 2023

Take a look here: https://platform.openai.com/docs/guides/chat/introduction

Specifically this line:

{"role": "system", "content": "You are a helpful assistant."},

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

No branches or pull requests

2 participants