We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9335580 commit 4c5701fCopy full SHA for 4c5701f
src/server.js
@@ -6,17 +6,13 @@ async function send(data) {
6
let openai = false;
7
8
try {
9
- // let organization = await this.organizations[data.organization_id]
10
- // if (!organization) {
11
if (data.chat.apiKey) {
12
openai = new OpenAI({ apiKey: data.chat.apiKey });
13
} else {
14
let apiKey = data.apis
15
openai = new OpenAI({ apiKey });
16
}
17
- // }
18
19
- // let response
20
switch (data.method) {
21
case 'chat':
22
case 'chat.completions':
0 commit comments