feat: support custom default system prompt (#285)

This commit is contained in:
Bryan Lee 2023-03-31 09:16:02 +08:00 committed by GitHub
parent 2114b7296e
commit 31129919bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
OPENAI_API_KEY=YOUR_KEY
DEFAULT_MODEL=gpt-3.5-turbo
DEFAULT_SYSTEM_PROMPT=CUSTOM_SYSTEM_PROMPT
OPENAI_API_KEY=YOUR_KEY

View File

@ -1,5 +1,5 @@
export const DEFAULT_SYSTEM_PROMPT =
"You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.";
process.env.DEFAULT_SYSTEM_PROMPT || "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.";
export const OPENAI_API_HOST =
process.env.OPENAI_API_HOST || 'https://api.openai.com';