Skip to content

2.1. OpenAI Integration

Jimmy Bourque edited this page Nov 30, 2026 · 1 revision

Français

The current integration has been completed using the OpenAI API.

To ensure sufficient performance when using this application, your OpenAI account should have an appropriate rate limit.
We recommend using at least Tier 4, which generally requires purchasing an initial $250 USD credit.

Rate Limit Considerations

Depending on your OpenAI subscription tier, your account may be subject to different limitations, including:

  • Available models
  • Requests per minute
  • Tokens per minute
  • Other usage restrictions defined by OpenAI

These limits can directly affect the performance and availability of the application.

Application Rate Limit Handling

The application manages rate limits by returning an HTTP error when a limit is reached.

When the rate limit is exceeded, the application returns:

HTTP 429 Too Many Requests

This ensures that the request can be postponed and retried after the delay specified by the error response. There is a dedicated layer that manages this event, but an internal limitation is in place to prevent indefinite postponement.

When to Upgrade Your OpenAI Tier

If postponing requests is not sufficient because rate limits are reached consistently, you should consider upgrading your OpenAI tier.

To increase your limits, you may need to purchase the required minimum credit amount to qualify for a higher tier, such as Tier 5.

Upgrading your tier can provide higher limits for:

  • Model access
  • Calls per minute
  • Tokens per minute
  • Overall throughput

How to Secure Your Budget

As a best practice for safeguarding your overall credit budget, you should create a dedicated project in your OpenAI account with a defined monthly budget and spending alerts. This helps you maintain better control over your financial operations.

Security

For better security, it is recommended to use a dedicated API key for this application.

This approach makes it easier to revoke or rotate the key if needed, without causing outages or affecting other services outside of this application.

Clone this wiki locally