Skip to content

Commit

Permalink
test key again
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharonfish committed Apr 30, 2024
1 parent ad1ac14 commit 281c864
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/models/OpenAI/Completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,9 @@ class Completion {
this.bestOf = config.bestOf || 1;
this.logitBias = config.logitBias || {};
this.user = config.user || "";
this.apiKey = process.env.REACT_APP_OPENAI_KEY;
}

static apiKey = process.env.REACT_APP_OPENAI_KEY;

// setApiKey(apiKey) {
// this.apiKey = apiKey;
// }

updateParam(id, newValue) {
if (!this[id]) {
throw new BadRequestError(`No such param. `);
Expand Down

0 comments on commit 281c864

Please sign in to comment.