From c54cbc39bc6d4d35284320a49b732fd7b59cb2d9 Mon Sep 17 00:00:00 2001 From: Gus Date: Mon, 22 Jul 2024 20:20:38 +0800 Subject: [PATCH] feat: add model to gpt-4o-mini --- README.md | 10 +++++----- release/app/package-lock.json | 4 ++-- release/app/package.json | 2 +- src/main/main.ts | 6 +++--- src/main/preload.ts | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7d589a8..6c857a7 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@

ChatSpot🥸

Spotlight app for ChatGPT

- - + + @@ -61,9 +61,9 @@ Download the app | Platform | Tested Supports | Download | | -------- | --------------- | ------------------------------------------------------------ | -| MacOS | 13.5.2+ | [Release](https://github.com/gusye1234/chat-spot/releases/download/v0.0.5/ChatSpot-0.0.5.dmg) | -| Windows | Windows 10 | [Release](https://github.com/gusye1234/chat-spot/releases/download/v0.0.5/ChatSpot-Setup-0.0.5.exe) | -| Linux | Ubuntu 22.04 | [Release](https://github.com/gusye1234/chat-spot/releases/download/v0.0.5/ChatSpot-0.0.5.AppImage) | +| MacOS | 13.5.2+ | [Release](https://github.com/gusye1234/chat-spot/releases/download/v0.0.6/ChatSpot-0.0.6.dmg) | +| Windows | Windows 10 | [Release](https://github.com/gusye1234/chat-spot/releases/download/v0.0.6/ChatSpot-Setup-0.0.6.exe) | +| Linux | Ubuntu 22.04 | [Release](https://github.com/gusye1234/chat-spot/releases/download/v0.0.6/ChatSpot-0.0.6.AppImage) | diff --git a/release/app/package-lock.json b/release/app/package-lock.json index f1d4028..4c862c0 100644 --- a/release/app/package-lock.json +++ b/release/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "chat-spot", - "version": "0.0.5", + "version": "0.0.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "chat-spot", - "version": "0.0.5", + "version": "0.0.6", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/release/app/package.json b/release/app/package.json index 3c47095..9623e72 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,6 +1,6 @@ { "name": "chat-spot", - "version": "0.0.5", + "version": "0.0.6", "description": "Spotlight app for ChatGPT", "license": "MIT", "author": { diff --git a/src/main/main.ts b/src/main/main.ts index fb83fb7..d6ed27f 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -316,14 +316,14 @@ app label: 'Change AI', submenu: [ { - label: 'GPT-3.5', + label: 'GPT-4o-mini', checked: store.get('OpenAIModel') - ? store.get('OpenAIModel') === 'gpt-3.5-turbo' + ? store.get('OpenAIModel') === 'gpt-4o-mini' : true, type: 'radio', click: () => { if (mainWindow) { - store.set('OpenAIModel', 'gpt-3.5-turbo'); + store.set('OpenAIModel', 'gpt-4o-mini'); mainWindow.webContents.send('reload-openai-model'); } }, diff --git a/src/main/preload.ts b/src/main/preload.ts index 984c1c9..699373c 100644 --- a/src/main/preload.ts +++ b/src/main/preload.ts @@ -39,7 +39,7 @@ const electronHandler = { }, openai: { openaiKey: (store.get('OpenAIKey') as string) ?? '', - openaiModel: (store.get('OpenAIModel') as string) ?? 'gpt-3.5-turbo', + openaiModel: (store.get('OpenAIModel') as string) ?? 'gpt-4o-mini', saveOpenAIKey(key: string) { store.set('OpenAIKey', key); },