feat(OpenAI Node): Overhaul (#8335)

This commit is contained in:
Michael Kret
2024-02-15 10:15:58 +02:00
committed by GitHub
parent 2b9391a975
commit 941278db68
49 changed files with 3542 additions and 20 deletions

View File

@@ -247,7 +247,15 @@ export abstract class DirectoryLoader {
isCustom: boolean;
}) {
try {
const codex = this.getCodex(filePath);
let codex;
if (!isCustom) {
codex = node.description.codex;
}
if (codex === undefined) {
codex = this.getCodex(filePath);
}
if (isCustom) {
codex.categories = codex.categories