How to pass organization header?
Closed this issue · 2 comments
Boscop commented
Thanks for making this crate, it seems very useful :)
Btw, on https://platform.openai.com/account/api-keys it says:
https://platform.openai.com/docs/api-reference/requesting-organization says:
Requesting organization
For users who belong to multiple organizations, you can pass a header to specify which organization is used for an API request. Usage from these API requests will count against the specified organization's subscription quota.
Example curl command:
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "OpenAI-Organization: org-Q4qnf6HKZtLiqUySAB41oMeY"
Could you please add this header functionality to this crate, so that we can select the org? :)
dongri commented
Boscop commented
Thanks :)