ITADN

Too many requests with Dalle3 as rendering engine

#16Closedsunlanchang 创建于 2024-05-07
S
sunlanchangcommented
``` RENDERING_ENGINE="OPENAI" NEXT_PUBLIC_ENABLE_RATE_LIMITER="true" AUTH_OPENAI_API_KEY="sk-cxxxxxx" RENDERING_OPENAI_API_BASE_URL="https://api.openai.com/v1" RENDERING_OPENAI_API_MODEL="dall-e-3" ``` I am trying to start this project on my Macbook using openai both as LLM engine and as rendering engine. This is my current `.env` setting, I start project with `npm run dev` and I can see UI has been rendered successfully. But when I type some prompts to frontend website and hit "GO" button, the backend command line shows me I have too many requests for OpenAI rendering engine. I have tried to modify `let delay = enableRateLimiter ? (1000 + (500 * panelIndex)) : 1000` to `let delay = enableRateLimiter ? (70000 + (500 * panelIndex)) : 1000` in `index.tsx` file, however it still didn't work for me. @jbilcke I believe this is not expected, could you please take a look at this issue. Appriciate it if you could help~.
关闭于 2024-05-23 0 条评论