diff --git a/.config/ags/services/gemini.js b/.config/ags/services/gemini.js index 6775173c7..18921cce6e 100644 --- a/.config/ags/services/gemini.js +++ b/.config/ags/services/gemini.js @@ -256,7 +256,7 @@ class GeminiService extends Service { try { const [bytes] = stream.read_line_finish(res); const line = this._decoder.decode(bytes); - // console.log(line); + console.log(line); if (line == '[{') { // beginning of response aiResponse._rawData += '{'; this.thinking = false; @@ -299,14 +299,17 @@ class GeminiService extends Service { "generationConfig": { "temperature": this._temperature, }, - // "key": this._key, - // "apiKey": this._key, + "tools": [ + { + "google_search": {} + } + ] }; const proxyResolver = new Gio.SimpleProxyResolver({ 'default-proxy': userOptions.ai.proxyUrl }); const session = new Soup.Session({ 'proxy-resolver': proxyResolver }); const message = new Soup.Message({ method: 'POST', - uri: GLib.Uri.parse(replaceapidom(`https://generativelanguage.googleapis.com/v1/models/${this.modelName}:streamGenerateContent?key=${this._key}`), GLib.UriFlags.NONE), + uri: GLib.Uri.parse(replaceapidom(`https://generativelanguage.googleapis.com/v1beta/models/${this.modelName}:streamGenerateContent?key=${this._key}`), GLib.UriFlags.NONE), }); message.request_headers.append('Content-Type', `application/json`); message.set_request_body_from_bytes('application/json', new GLib.Bytes(JSON.stringify(body))); diff --git a/.config/ags/services/messages.js b/.config/ags/services/messages.js index 12beeed9c..b2d3b05f3 100644 --- a/.config/ags/services/messages.js +++ b/.config/ags/services/messages.js @@ -12,7 +12,7 @@ const FIRST_RUN_PATH = `${GLib.get_user_state_dir()}/ags/user/${FIRST_RUN_FILE}` const FIRST_RUN_FILE_CONTENT = "Just a file to confirm that you have been greeted ;)"; const APP_NAME = "illogical-impulse"; const FIRST_RUN_NOTIF_TITLE = "Welcome!"; -const FIRST_RUN_NOTIF_BODY = `First run? 👀 CTRL+SUPER+T to pick a wallpaper (or styles will break!)\nFor a list of keybinds, hit Super + /.`; +const FIRST_RUN_NOTIF_BODY = `First run? For a list of keybinds, hit Super + /.`; var batteryWarned = false; async function batteryMessage() {