mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-30 07:08:50 +01:00
🚀 feat: Add OPENAI_ORGANIZATION for all OpenAI Requests (#1590)
This commit is contained in:
parent
7e2e19a134
commit
a7c54573c4
4 changed files with 17 additions and 0 deletions
|
|
@ -954,6 +954,10 @@ ${convo}
|
|||
opts.defaultHeaders = { ...opts.defaultHeaders, 'api-key': this.apiKey };
|
||||
}
|
||||
|
||||
if (process.env.OPENAI_ORGANIZATION) {
|
||||
opts.organization = process.env.OPENAI_ORGANIZATION;
|
||||
}
|
||||
|
||||
let chatCompletion;
|
||||
const openai = new OpenAI({
|
||||
apiKey: this.apiKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue