mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
v2.4.4: Add new GPT-4 TURBO model (#182)
This commit is contained in:
parent
effd534a8c
commit
f3db894d76
7 changed files with 15 additions and 7 deletions
|
|
@ -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",
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "obsidian-copilot",
|
||||
"version": "2.4.3",
|
||||
"version": "2.4.4",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "obsidian-copilot",
|
||||
"version": "2.4.3",
|
||||
"version": "2.4.4",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@huggingface/inference": "^1.8.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-copilot",
|
||||
"version": "2.4.3",
|
||||
"version": "2.4.4",
|
||||
"description": "ChatGPT integration for Obsidian",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
@ -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',
|
||||
|
|
@ -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,
|
||||
]);
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
@ -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)
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
Loading…
Reference in a new issue