Skip to content

Commit 4c5701f

Browse files
committed
fix: removed dead code
1 parent 9335580 commit 4c5701f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/server.js

-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@ async function send(data) {
66
let openai = false;
77

88
try {
9-
// let organization = await this.organizations[data.organization_id]
10-
// if (!organization) {
119
if (data.chat.apiKey) {
1210
openai = new OpenAI({ apiKey: data.chat.apiKey });
1311
} else {
1412
let apiKey = data.apis
1513
openai = new OpenAI({ apiKey });
1614
}
17-
// }
1815

19-
// let response
2016
switch (data.method) {
2117
case 'chat':
2218
case 'chat.completions':

0 commit comments

Comments
 (0)