minor changes in referencing the variables

This commit is contained in:
buzz-lightsnack-2007 2024-05-10 23:51:44 +08:00
parent 9f0267f3a5
commit 37329df836

View file

@ -45,7 +45,7 @@ export default class gemini {
@param {boolean} continued whether to continue the existing prompt
*/
async generate(prompt, safetySettings, generationConfig, continued = false) {
let create = async () => {
const create = async () => {
let REQUEST = {}, PROMPT = [];
if ((typeof prompt) != `object`) {
@ -178,7 +178,7 @@ export default class gemini {
}
let REQUEST = await create();
let RESPONSE_RAW = await send(REQUEST);
return(analyze(RESPONSE_RAW));
await send(REQUEST);
return(analyze(this.response));
}
};