Skip to content

Commit

Permalink
fix: docfiller skip few responses upon loading new page
Browse files Browse the repository at this point in the history
  • Loading branch information
rootCircle committed Dec 5, 2024
1 parent 5a2ab46 commit 11ce412
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/docFillerCore/engines/gptEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ export class LLMEngine {
}
try {
const parser = LLMEngine.getParser(questionType);
const modelInstance = LLMEngine.instances[this.engine];
let modelInstance = LLMEngine.instances[this.engine];

if (!modelInstance) {
await LLMEngine.fetchApiKeys();
modelInstance = LLMEngine.instantiateEngine(this.engine);
}

if (modelInstance) {
const selectedProfileKey = (await getSelectedProfileKey()).trim();
Expand Down

0 comments on commit 11ce412

Please sign in to comment.