memochou1993 / gpt-ai-assistant

OpenAI + LINE + Vercel = GPT AI Assistant
https://memochou1993.github.io/gpt-ai-assistant-docs/
MIT License
7.23k stars 9.33k forks source link

Vercel Timeout #302

Closed JHunlimited-LLC closed 8 months ago

JHunlimited-LLC commented 9 months ago

Hi this is in reference to your question in a previous issue that got closed for some reason. Can you help? Please see attached. Screenshot 2023-11-22 194048 Screenshot 2023-11-22 194845 Screenshot 2023-11-22 194632 https://github.com/memochou1993/gpt-ai-assistant/issues/301#issue-2000793496 Originally posted by @JHunlimited-LLC in https://github.com/memochou1993/gpt-ai-assistant/issues/301#issuecomment-1823704033

memochou1993 commented 8 months ago

@JHunlimited-LLC

Hi, unless you have purchased Vercel's Team Plan, you will encounter a timeout limit of 10 seconds.

If you are on the free plan, you can reduce the size of messages sent to the AI.

APP_MAX_PROMPT_MESSAGES = 4
APP_MAX_PROMPT_TOKENS = 256
OPENAI_COMPLETION_MAX_TOKENS = 64