Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organization Header #100

Closed
TheLolkPlays opened this issue Jan 15, 2024 · 5 comments
Closed

Organization Header #100

TheLolkPlays opened this issue Jan 15, 2024 · 5 comments

Comments

@TheLolkPlays
Copy link

Hi, i don't know how everyone uses API organizations, but theoretically I don't believe there would be any issues using different models as long as your subscription allows it. I don't know if there is a way to do this, but it would be verry nice to be able to add the OpenAI-Organization header in the API calls.
https://platform.openai.com/docs/api-reference/organization-optional
The only settings I can see are the following:
image

An example of usage would be to use 3.5 turbo with personal subscription but gpt-4-1106-preview with a subsctiption?

@a-d-r-i-a-n-d
Copy link

You can change the model in Conversation agent setting after the installation.
Screenshot 2024-01-15 at 13 04 48

@TheLolkPlays
Copy link
Author

Hey @a-d-r-i-a-n-d, I was not referring to the model :) I was referring to the thought when you have multiple assistants and use multiple models and might want to choose which consumption subscription it uses. Some people might have personal and or organizational consumptions.

This is done rather easily:
curl https://api.openai.com/v1/models \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "OpenAI-Organization: org-oDeZSVdysKnWSDbAiZ0ACGqK"

https://platform.openai.com/docs/api-reference/organization-optional

However having an optional option to set this would be nice

@jekalmin
Copy link
Owner

Thanks for reporting an issue.

It would be nice to add an optional parameter, organization.
I will work on it soon.

jekalmin pushed a commit that referenced this issue Feb 8, 2024
jekalmin pushed a commit that referenced this issue Feb 8, 2024
@jekalmin
Copy link
Owner

jekalmin commented Feb 8, 2024

organization is now added in 1.0.3-beta1.
Please try it and give a feedback.

1

@jekalmin
Copy link
Owner

It's released since 1.0.3.
Thanks for reporting an issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants