openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

Added support for 'OpenAI-Organization' header

Open lfgcampos opened this issue 2 years ago • 10 comments

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.

lfgcampos avatar Jan 20 '23 14:01 lfgcampos

@TheoKanning just wanted to see if we could get this merged?

adatta02 avatar Apr 10 '23 19:04 adatta02

@TheoKanning @lfgcampos Any chance we can get this PR merged? Will be very useful!

sohilnandu avatar Jul 18 '23 17:07 sohilnandu

@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.

lfgcampos avatar Jul 18 '23 18:07 lfgcampos

+1 on getting this in, I recently came across the need to do the same thing

shanifdhanani avatar Aug 19 '23 14:08 shanifdhanani

@TheoKanning any chance we can get this in soon? I also came across the same need for org id support.

jinliuattentive avatar Aug 21 '23 22:08 jinliuattentive

+1

jwclark avatar Oct 20 '23 19:10 jwclark

Any updates on this?

dutsuwak avatar Oct 31 '23 15:10 dutsuwak

+1 on this. Any news ?

damiencuvillier-rts avatar Nov 02 '23 09:11 damiencuvillier-rts

+1 This would be very useful

AuguB avatar Nov 23 '23 17:11 AuguB

+1 is this ever happening or not?

paulotaylor avatar Jan 25 '24 19:01 paulotaylor