Skip to content

Commit

Permalink
v2.4.4: Add new GPT-4 TURBO model (logancyang#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
logancyang committed Nov 8, 2023
1 parent effd534 commit f3db894
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "copilot",
"name": "Copilot",
"version": "2.4.3",
"version": "2.4.4",
"minAppVersion": "0.15.0",
"description": "A ChatGPT Copilot in Obsidian.",
"author": "Logan Yang",
Expand Down
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-copilot",
"version": "2.4.3",
"version": "2.4.4",
"description": "ChatGPT integration for Obsidian",
"main": "main.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/components/ChatComponents/ChatIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const ChatIcons: React.FC<ChatIconsProps> = ({
<option value={ChatModelDisplayNames.GPT_35_TURBO}>{ChatModelDisplayNames.GPT_35_TURBO}</option>
<option value={ChatModelDisplayNames.GPT_35_TURBO_16K}>{ChatModelDisplayNames.GPT_35_TURBO_16K}</option>
<option value={ChatModelDisplayNames.GPT_4}>{ChatModelDisplayNames.GPT_4}</option>
<option value={ChatModelDisplayNames.GPT_4_TURBO}>{ChatModelDisplayNames.GPT_4_TURBO}</option>
<option value={ChatModelDisplayNames.GPT_4_32K}>{ChatModelDisplayNames.GPT_4_32K}</option>
{/* <option value={ChatModelDisplayNames.CLAUDE_1}>{ChatModelDisplayNames.CLAUDE_1}</option>
<option value={ChatModelDisplayNames.CLAUDE_1_100K}>{ChatModelDisplayNames.CLAUDE_1_100K}</option>
Expand Down
4 changes: 4 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export enum ChatModels {
GPT_35_TURBO = 'gpt-3.5-turbo',
GPT_35_TURBO_16K = 'gpt-3.5-turbo-16k',
GPT_4 = 'gpt-4',
GPT_4_TURBO = 'gpt-4-1106-preview',
GPT_4_32K = 'gpt-4-32k',
CLAUDE_1 = 'claude-1',
CLAUDE_1_100K = 'claude-1-100k',
Expand All @@ -22,6 +23,7 @@ export enum ChatModelDisplayNames {
GPT_35_TURBO = 'GPT-3.5',
GPT_35_TURBO_16K = 'GPT-3.5 16K',
GPT_4 = 'GPT-4',
GPT_4_TURBO = 'GPT-4 TURBO',
GPT_4_32K = 'GPT-4 32K',
CLAUDE_1 = 'CLAUDE-1',
CLAUDE_1_100K = 'CLAUDE-1-100K',
Expand All @@ -38,6 +40,7 @@ export const OPENAI_MODELS = new Set([
ChatModelDisplayNames.GPT_35_TURBO,
ChatModelDisplayNames.GPT_35_TURBO_16K,
ChatModelDisplayNames.GPT_4,
ChatModelDisplayNames.GPT_4_TURBO,
ChatModelDisplayNames.GPT_4_32K,
ChatModelDisplayNames.LOCAL_AI,
]);
Expand All @@ -60,6 +63,7 @@ export const DISPLAY_NAME_TO_MODEL: Record<string, string> = {
[ChatModelDisplayNames.GPT_35_TURBO]: ChatModels.GPT_35_TURBO,
[ChatModelDisplayNames.GPT_35_TURBO_16K]: ChatModels.GPT_35_TURBO_16K,
[ChatModelDisplayNames.GPT_4]: ChatModels.GPT_4,
[ChatModelDisplayNames.GPT_4_TURBO]: ChatModels.GPT_4_TURBO,
[ChatModelDisplayNames.GPT_4_32K]: ChatModels.GPT_4_32K,
[ChatModelDisplayNames.CLAUDE_1]: ChatModels.CLAUDE_1,
[ChatModelDisplayNames.CLAUDE_1_100K]: ChatModels.CLAUDE_1_100K,
Expand Down
6 changes: 4 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class CopilotSettingTab extends PluginSettingTab {
ChatModelDisplayNames.GPT_35_TURBO,
ChatModelDisplayNames.GPT_35_TURBO_16K,
ChatModelDisplayNames.GPT_4,
ChatModelDisplayNames.GPT_4_TURBO,
ChatModelDisplayNames.GPT_4_32K,
// ChatModelDisplayNames.CLAUDE_1,
// ChatModelDisplayNames.CLAUDE_1_100K,
Expand All @@ -52,6 +53,7 @@ export class CopilotSettingTab extends PluginSettingTab {
ChatModelDisplayNames.AZURE_GPT_35_TURBO_16K,
ChatModelDisplayNames.AZURE_GPT_4,
ChatModelDisplayNames.AZURE_GPT_4_32K,
ChatModelDisplayNames.LOCAL_AI,
];

new Setting(containerEl)
Expand Down Expand Up @@ -96,8 +98,8 @@ export class CopilotSettingTab extends PluginSettingTab {
createFragment((frag) => {
frag.appendText("You can find your API key at ");
frag.createEl('a', {
text: "https://beta.openai.com/account/api-keys",
href: "https://beta.openai.com/account/api-keys"
text: "https://platform.openai.com/api-keys",
href: "https://platform.openai.com/api-keys"
});
frag.createEl('br');
frag.appendText(
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"2.4.0": "0.15.0",
"2.4.1": "0.15.0",
"2.4.2": "0.15.0",
"2.4.3": "0.15.0"
"2.4.3": "0.15.0",
"2.4.4": "0.15.0"
}

0 comments on commit f3db894

Please sign in to comment.