Skip to content

Commit

Permalink
feat: add model to gpt-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
gusye1234 committed Jul 22, 2024
1 parent c8517e0 commit c54cbc3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<h1>ChatSpot🥸</h1>
<p><strong>Spotlight app for ChatGPT</strong></p>
<p>
<a href="https://github.com/gusye1234/chat-spot/releases/tag/v0.0.5">
<img src="https://img.shields.io/badge/version-v0.0.5-blue">
<a href="https://github.com/gusye1234/chat-spot/releases/tag/v0.0.6">
<img src="https://img.shields.io/badge/version-v0.0.6-blue">
</a>
<a href="https://github.com/gusye1234/chat-spot/actions?query=workflow%3APublish">
<img src="https://github.com/gusye1234/chat-spot/actions/workflows/build.yml/badge.svg">
Expand Down Expand Up @@ -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) |



Expand Down
4 changes: 2 additions & 2 deletions release/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chat-spot",
"version": "0.0.5",
"version": "0.0.6",
"description": "Spotlight app for ChatGPT",
"license": "MIT",
"author": {
Expand Down
6 changes: 3 additions & 3 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/main/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit c54cbc3

Please sign in to comment.