Environment Variables

Set environment variables to change program settings.

NameDefault ValueDescription
APP_DEBUGfalsePrint prompt to console. The value must be true of false.
APP_WEBHOOK_PATH/webhookCustom webhook path.
APP_API_TIMEOUT9000Timeout for API calls.
APP_LANGzhApplication language. The value must be one of zh_TW, zh_CN, en or ja.
APP_MAX_GROUPS1Maximum groups. The VERCEL_ACCESS_TOKEN environment variable is required.
APP_MAX_USERS5Maximum users. The VERCEL_ACCESS_TOKEN environment variable is required.
APP_MAX_PROMPT_MESSAGES12Maximum prompt sentences.
APP_MAX_PROMPT_TOKENS1024Maximum prompt tokens.
APP_INIT_PROMPT''Initial prompt of system.
HUMAN_NAME''Name of user.
HUMAN_INIT_PROMPT''Initial prompt of user.
BOT_NAMEAIName of AI Assistant. This is used to call AI Assistant when auto-reply is deactivated.
BOT_INIT_PROMPT''Initial prompt of AI Assistant.
BOT_TONE''Tone of AI Assistant.
BOT_DEACTIVATEDfalseDeactivate auto-reply at the beginning. The value must be true of false.
ERROR_TIMEOUT_DISABLEDfalseDisable timeout error. The value must be true of false.
VERCEL_TIMEOUT<APP_API_TIMEOUT>Timeout for Vercel API calls.
VERCEL_PROJECT_NAMEgpt-ai-assistantVercel project name. You can use this environment variable when the Vercel project name differs from the GitHub project name.
VERCEL_TEAM_IDnullVercel team ID. You must use this environment variable when using Vercel's Pro plan.
VERCEL_ACCESS_TOKENnullVercel access token
VERCEL_DEPLOY_HOOK_URLnullVercel deploy hook URL
OPENAI_TIMEOUT<APP_API_TIMEOUT>Timeout for OpenAI API calls.
OPENAI_API_KEYnullOpenAI API key
OPENAI_BASE_URLhttps://api.openai.comOpenAI API Endpoint.
OPENAI_COMPLETION_MODELgpt-3.5-turboRefer to modelopen in new window parameter for details.
OPENAI_COMPLETION_TEMPERATURE0.9Refer to temperatureopen in new window parameter for details.
OPENAI_COMPLETION_MAX_TOKENS160Refer to max_tokensopen in new window parameter for details.
OPENAI_COMPLETION_FREQUENCY_PENALTY0Refer to frequency_penaltyopen in new window parameter for details.
OPENAI_COMPLETION_PRESENCE_PENALTY0.6Refer to presence_penaltyopen in new window parameter for details.
OPENAI_COMPLETION_STOP_SEQUENCESassistant:,user:Refer to stopopen in new window parameter for details.
OPENAI_IMAGE_GENERATION_SIZE256x256Refer to sizeopen in new window parameter for details.
LINE_TIMEOUT<APP_API_TIMEOUT>Timeout for LINE Messaging API calls.
LINE_CHANNEL_ACCESS_TOKENnullLINE channel access token
LINE_CHANNEL_SECRETnullLINE channel secret
SERPAPI_TIMEOUT<APP_API_TIMEOUT>Timeout for SerpApi API calls.
SERPAPI_API_KEYnullSerpApi API key
SERPAPI_LOCATIONTaiwanLocation of search。
SERPAPI_LANGlang_zh-TWLanguage of search。

Click the "Redeploy" button to redeploy if there are any changes.