Helicone Community Page

C
K
m
H
E

Rate limiting isn't working

I'm attempting to use helicone as a proxy to add rate limiting, etc.

I'm able to see logs, and user id's fine, but rate limiting isn't working at all.

I've hardcoded a user id as "ABC" with a quota of 2 over a period of 1000 seconds, using requests. I'm able to call the OpenAI API each time, with no rate limiting being applied.

My code:

Plain Text
const openai = new OpenAI({
    apiKey: process.env.OPENAI_API_KEY,
    baseURL: "https://oai.helicone.ai/v1",
    defaultHeaders: {
      "Helicone-Auth": `Bearer ${process.env.HELICONE_API_KEY}`,
      "Helicone-RateLimit-Policy": `${RL_QUOTA};w=${RL_TIME_WINDOW_SECS};u=${RL_UNIT};s=${RL_SEGMENT}`,
      "Helicone-User-Id": user,
    }
  });
A
J
3 comments
looking into this now
This is fixed now- Sorry for the inconveince and thank you for reporting!
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord
Join