Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #42 from MichaelYuhe/refactor/use-3.5-by-default
Browse files Browse the repository at this point in the history
Refactor/use 3.5 by default
  • Loading branch information
MichaelYuhe authored Dec 11, 2023
2 parents 01f9b7e + 08a6a50 commit 1e075e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ A Chrome extension helps you group your tabs with AI.
>
> [![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/+99v98-XOQY0zZGNl)
Demo Video:
Demo Video:

> [![Watch the video](https://img.youtube.com/vi/SjfKiXy3zOc/default.jpg)](https://youtu.be/SjfKiXy3zOc)
## Roadmap
Expand All @@ -32,10 +33,6 @@ Download the latest released `dist.zip` from [the release page](https://github.c

Open Chrome, go to `chrome://extensions/`, turn on `Developer mode` on the top right corner, click `Load unpacked` on the top left corner, select the `dist` folder you just unzipped.

- Fill in the OpenAI API key, add some types and click on the "Save" button.
- Click on the "Group Tabs" button, your current tabs will be grouped.
- Your new tab will be grouped automatically.

> You can change the model and API server in the options page.
## Development
Expand Down
5 changes: 2 additions & 3 deletions src/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "./options.css";
import { getStorage, setStorage } from "./utils";

const Options = () => {
const [model, setModel] = useState<string | undefined>("gpt-4");
const [model, setModel] = useState<string | undefined>("gpt-3.5-turbo");
const [apiURL, setApiURL] = useState<string | undefined>(
"https://api.openai.com"
"https://api.openai.com/v1/chat/completions"
);

useEffect(() => {
Expand Down Expand Up @@ -48,7 +48,6 @@ const Options = () => {
<option value="gpt-4-32k">GPT 4 32k</option>
<option value="gpt-3.5-turbo-1106">GPT 3.5 turbo 1106</option>
<option value="gpt-3.5-turbo">GPT 3.5 turbo</option>
<option value="gpt-3.5">GPT 3.5</option>
</select>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function batchGroupTabs(
};
});

const model = (await getStorage("model")) || "gpt-4";
const model = (await getStorage("model")) || "gpt-3.5-turbo";
const apiURL =
(await getStorage("apiURL")) ||
"https://api.openai.com/v1/chat/completions";
Expand Down Expand Up @@ -81,7 +81,7 @@ export async function handleOneTab(
openAIKey: string
) {
try {
const model = (await getStorage("model")) || "gpt-4";
const model = (await getStorage("model")) || "gpt-3.5-turbo";
const apiURL =
(await getStorage("apiURL")) ||
"https://api.openai.com/v1/chat/completions";
Expand Down

0 comments on commit 1e075e5

Please sign in to comment.