Content deleted Content added
Cramulator (talk | contribs) No edit summary |
Sohom Datta (talk | contribs) m Sohom Datta moved page User:Sohom Datta/GeminiProofreader.js to User:Polygnotus/Scripts/GeminiProofreaderOld.js: mv per tp request |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1:
// based on User:Polygnotus/Scripts/Claude6.js
// instructions: add the following to your User/common.js file
(function() {
'use strict';
Line 592 ⟶ 593:
if (!wikicode) {
throw new Error('Could not fetch article wikicode');
}
Line 612 ⟶ 600:
this.updateStatus('Proofreading complete!');
const finalOutput = `${articleTitle}:\n${result}`; // Prepend title to proofreading
this.updateOutput(finalOutput, true);
} catch (error) {
Line 701 ⟶ 690:
contents: [{
parts: [{ "text": wikicode }],
// role: "user"
}],
systemInstruction: {
Line 707 ⟶ 696:
},
generationConfig: {
maxOutputTokens:
temperature: 0.
{urlContext: {}},
{googleSearch: {}},
],
};
|