Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Dec 31, 2024
1 parent 737ef10 commit 871c324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/aiProvider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export abstract class AiProvider {

static getInstance(): AiProviderRoot | null {
// OpenAi
if (UtilsAi.isOpenApiAvailable()) {
if (UtilsAi.isOpenAiAvailable()) {
return new OpenAiProvider();
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/common/aiProvider/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getEnvVar } from "../../config/index.js";

export class UtilsAi {
public static isOpenApiAvailable() {
public static isOpenAiAvailable() {
if (getEnvVar("OPENAI_API_KEY")) {
return true;
}
Expand Down

0 comments on commit 871c324

Please sign in to comment.