Skip to content

Feature: Expose the underlying model API response headers #636

Description

@cedrictwillie

I couldn't find where the underlying response was accessible. My use case is being able to inspect the response headers for rate limit quota information.

  • x-ratelimit-limit-requests
  • x-ratelimit-limit-tokens
  • x-ratelimit-remaining-requests
  • x-ratelimit-remaining-tokens
  • etc.

OpenAI: https://developers.openai.com/api/docs/guides/rate-limits#rate-limits-in-headers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions