-
https://postgres-pgvector.vercel.app/ I wanted to give pgvector a spin (well, I still do:). When I searched for the suggested terms, I got no results. Looks like there is a 500 error under the hood. Let me know if this is just happening on my machine. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I implemented the project on my own account, and here is the message that I am getting in my logs: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors. It looks like the app is firing on every keystroke. I will change that and see if I get different behavior |
Beta Was this translation helpful? Give feedback.
-
Looks like the every-keystroke implementation overwhelms the free tier of the API (and probably costs $$ for those who are not on free tier). I ended up changing the line to a longer delay before initiating the OpenAI call + purchasing some Open AI credits, and now it is working. const [debouncedQuery] = useDebounce(query, 5000) Note that I do not think OpenAI consumes cash with every query, but if you have a noisy app (like the pgvector app) it may just throttle you. After adding $10, I have not seen any reduction in my available balance. I will update if it goes to $0:). |
Beta Was this translation helpful? Give feedback.
Looks like the every-keystroke implementation overwhelms the free tier of the API (and probably costs $$ for those who are not on free tier).
I ended up changing the line to a longer delay before initiating the OpenAI call + purchasing some Open AI credits, and now it is working.
const [debouncedQuery] = useDebounce(query, 5000)
Note that I do not think OpenAI consumes cash with every query, but if you have a noisy app (like the pgvector app) it may just throttle you. After adding $10, I have not seen any reduction in my available balance. I will update if it goes to $0:).