only_ever_generator 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bootstrap/app.js
CHANGED
|
@@ -60,10 +60,10 @@ class OnlyEverGenerator {
|
|
|
60
60
|
this.cardgenResponse = yield this.generateCard(this.promptForCardGen, JSON.stringify(this.typologyResponse), false);
|
|
61
61
|
responseToReturn.push(this.cardgenResponse);
|
|
62
62
|
/// check if gap fill is required ie coverage determination
|
|
63
|
-
if
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
63
|
+
// if(this.cardgenResponse.status_code == 200) {
|
|
64
|
+
// this.gapFillResponse = await this._generationForGapFill(this.typologyResponse, this.cardgenResponse);
|
|
65
|
+
// responseToReturn.push(this.gapFillResponse);
|
|
66
|
+
// }
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
return responseToReturn;
|
|
@@ -220,9 +220,9 @@ class GenerateCards {
|
|
|
220
220
|
let counter = 65;
|
|
221
221
|
for (let data of answers) {
|
|
222
222
|
let value = data.right_item.join(',');
|
|
223
|
-
let
|
|
223
|
+
let leftData = data.left_item;
|
|
224
224
|
let letter = String.fromCharCode(counter);
|
|
225
|
-
titles.push(`${letter}. ${
|
|
225
|
+
titles.push(`${letter}. ${leftData} -- ${value}`);
|
|
226
226
|
counter++;
|
|
227
227
|
}
|
|
228
228
|
let displayTitle = titles.join(",");
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
// const app = express();
|
|
8
8
|
// const port = 3000;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
// import { returnPromptData } from "./constants/prompt_data";
|
|
11
|
+
/// While Publishing the package , and using this code as a separate npm module
|
|
12
|
+
/// uncomment the below line and comment all the others, expect the import of OnlyEverGenerator
|
|
13
|
+
// export {OnlyEverGenerator};
|
|
13
14
|
// //. All the Codes Below uses express and are strictly for development purpose, while publishing the package, comment everything
|
|
14
15
|
// //below this line
|
|
15
16
|
// let oeGen = new OnlyEverGenerator(config.openAIKey, "gpt-4o", {
|
package/package.json
CHANGED
package/src/bootstrap/app.ts
CHANGED
|
@@ -78,10 +78,10 @@ export class OnlyEverGenerator {
|
|
|
78
78
|
responseToReturn.push(this.cardgenResponse);
|
|
79
79
|
|
|
80
80
|
/// check if gap fill is required ie coverage determination
|
|
81
|
-
if(this.cardgenResponse.status_code == 200) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
81
|
+
// if(this.cardgenResponse.status_code == 200) {
|
|
82
|
+
// this.gapFillResponse = await this._generationForGapFill(this.typologyResponse, this.cardgenResponse);
|
|
83
|
+
// responseToReturn.push(this.gapFillResponse);
|
|
84
|
+
// }
|
|
85
85
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -234,9 +234,9 @@ return question;
|
|
|
234
234
|
for (let data of answers) {
|
|
235
235
|
|
|
236
236
|
let value = data.right_item.join(',');
|
|
237
|
-
let
|
|
237
|
+
let leftData = data.left_item;
|
|
238
238
|
let letter = String.fromCharCode(counter);
|
|
239
|
-
titles.push(`${letter}. ${
|
|
239
|
+
titles.push(`${letter}. ${leftData} -- ${value}`);
|
|
240
240
|
counter++;
|
|
241
241
|
}
|
|
242
242
|
let displayTitle = titles.join(",");
|
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { OnlyEverGenerator } from "./bootstrap/app";
|
|
|
11
11
|
|
|
12
12
|
/// While Publishing the package , and using this code as a separate npm module
|
|
13
13
|
/// uncomment the below line and comment all the others, expect the import of OnlyEverGenerator
|
|
14
|
-
export {OnlyEverGenerator};
|
|
14
|
+
// export {OnlyEverGenerator};
|
|
15
15
|
|
|
16
16
|
// //. All the Codes Below uses express and are strictly for development purpose, while publishing the package, comment everything
|
|
17
17
|
// //below this line
|