Skip to content

User should be able to specify the organization paying for OpenAI API requests #6

@tracedwax

Description

@tracedwax

Is your feature request related to a problem? Please describe.
One of our users belongs to multiple OpenAI organizations, and API requests are currently being billed to an organization which won't pay for them long-term.

Describe the solution you'd like
I'd like to be able to specify the organization in an env file, like:

# Optional. Please uncomment and replace <Your-OpenAI-Org-ID>
# with your OpenAI org ID if you have multiple orgs.
OPENAI_ORGANIZATION="<Your-OpenAI-Org-ID>" 

This will also require upgrading to the correct LangChain API which allows you to submit the organization ID. The current API is deprecated and does not support the organization ID.

Describe alternatives you've considered
For now, we provided a separate API key that doesn't require an organization ID.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    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