openai-java
openai-java copied to clipboard
Added support for 'OpenAI-Organization' header
According to the OpenAI docs, when a user belongs to multiple organizations you can provide the organizationId
as an HttpHeader
for billing/usage purposes.
It is also listed as a best practice on their docs.
This PR aims at introducing the possibility to provide an organizationId
when creating the OpenAiService
. Bear in mind this attribute is optional making this change backwards compatible.
@TheoKanning just wanted to see if we could get this merged?
@TheoKanning @lfgcampos Any chance we can get this PR merged? Will be very useful!
@TheoKanning @lfgcampos Any chance we can get this PR merged? Will be very useful!
Best I can do is to resolve conflicts in the PR but I don't have the power to merge it.
+1 on getting this in, I recently came across the need to do the same thing
@TheoKanning any chance we can get this in soon? I also came across the same need for org id support.
+1
Any updates on this?
+1 on this. Any news ?
+1 This would be very useful
+1 is this ever happening or not?