Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
franktip committed Dec 23, 2024
1 parent 1c5dbe7 commit 92101fd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/model/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ export class Model implements IModel {
getEnv("LLMORPHEUS_LLM_AUTH_HEADERS")
);

protected static LLMORPHEUS_LLM_PROVIDER = JSON.parse(
getEnv("LLMORPHEUS_LLM_PROVIDER", false)
);
protected static LLMORPHEUS_LLM_PROVIDER = Model.getLLMProvider();

private static getLLMProvider() {
const llmProvider = getEnv("LLMORPHEUS_LLM_PROVIDER", false);
if (llmProvider) {
return JSON.parse(llmProvider);
} else {
return null;
}
}

protected instanceOptions: PostOptions;
protected rateLimiter: RateLimiter;
Expand Down

0 comments on commit 92101fd

Please sign in to comment.