synthesisengineering / synthesisengineering/ragbot
User should be able to specify the organization paying for OpenAI API requests
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34
- Forks
- 4
- Avg merge
- 26m
- Merged PRs (30d)
- 18
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the environment-file handling and the LangChain integration used for OpenAI API requests. Check how configuration reaches the request client and verify the current LangChain API for organization support. Done means an optional OPENAI_ORGANIZATION value can be provided and requests use it without breaking setups that omit it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100