966021ed74
This commit modifies the OpenAI host configuration to support customization through an environment variable. This change is particularly useful in scenarios where access to the official OpenAI host is restricted or unavailable, allowing users to configure an alternative host for their specific needs.
4 lines
253 B
TypeScript
4 lines
253 B
TypeScript
export const 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' |