feat: support custom default system prompt (#285)
This commit is contained in:
parent
2114b7296e
commit
31129919bf
|
@ -1,2 +1,3 @@
|
|||
OPENAI_API_KEY=YOUR_KEY
|
||||
DEFAULT_MODEL=gpt-3.5-turbo
|
||||
DEFAULT_MODEL=gpt-3.5-turbo
|
||||
DEFAULT_SYSTEM_PROMPT=CUSTOM_SYSTEM_PROMPT
|
||||
OPENAI_API_KEY=YOUR_KEY
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue