Feature request: Adding temperature as parameter (#513)
* Adding temperature as parameter * NEXT_PUBLIC_ prefix added * add spacing --------- Co-authored-by: Ivan Fioravanti <> Co-authored-by: Mckay Wrigley <mckaywrigley@gmail.com>
This commit is contained in:
+4
-1
@@ -1,10 +1,13 @@
|
||||
export const DEFAULT_SYSTEM_PROMPT =
|
||||
process.env.DEFAULT_SYSTEM_PROMPT ||
|
||||
process.env.NEXT_PUBLIC_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';
|
||||
|
||||
export const DEFAULT_TEMPERATURE =
|
||||
parseFloat(process.env.NEXT_PUBLIC_DEFAULT_TEMPERATURE || "1");
|
||||
|
||||
export const OPENAI_API_TYPE =
|
||||
process.env.OPENAI_API_TYPE || 'openai';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user