use update necessity as a factor when determining the need for re-analysis
This commit is contained in:
parent
64c039913b
commit
0f36d2a3d2
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ export default class product {
|
|||
|
||||
async analyze(options = {}) {
|
||||
// Stop when the data is already analyzed.
|
||||
if (((this.analysis && this.analysis != undefined) ? !((typeof this.analysis).includes(`obj`) && !Array.isArray(this.analysis)) : true) || ((options && (typeof options).includes(`obj`)) ? options[`override`] : false)) {
|
||||
if (((this.analysis && this.analysis != undefined) ? !((typeof this.analysis).includes(`obj`) && !Array.isArray(this.analysis)) : true) || this.status[`update`] || ((options && (typeof options).includes(`obj`)) ? options[`override`] : false)) {
|
||||
const gemini = (await import(chrome.runtime.getURL("scripts/AI/gemini.js"))).default;
|
||||
let analyzer = new gemini (await global.read([`settings`,`analysis`,`api`,`key`]), `gemini-pro`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue