diff --git a/CHANGELOG.md b/CHANGELOG.md index d1cce3b..7bede40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v4.4.3 + +* Support GPT-4o + ## v4.4.2 * Support custom model names for local or self-hosted LLMs diff --git a/package.json b/package.json index 5a1cbae..5d1f8b1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "displayName": "ChatGPT Copilot", "icon": "images/ai-logo.png", "description": "An VS Code ChatGPT Copilot Extension", - "version": "4.4.2", + "version": "4.4.3", "aiKey": "", "repository": { "url": "https://github.com/feiskyer/chatgpt-copilot" @@ -398,6 +398,7 @@ "gpt-3.5-turbo-16k-0613", "gpt-3.5-turbo-instruct", "gpt-4", + "gpt-4o", "gpt-4-0314", "gpt-4-0613", "gpt-4-1106-preview", @@ -431,6 +432,7 @@ "OpenAI API Key - gpt-3.5-turbo-16k-0613", "OpenAI API Key - gpt-3.5-turbo-instruct", "OpenAI API Key - gpt-4", + "OpenAI API Key - gpt-4o", "OpenAI API Key - gpt-4-0314", "OpenAI API Key - gpt-4-0613", "OpenAI API Key - gpt-4-1106-preview", @@ -461,6 +463,7 @@ "gpt-3.5-turbo-16k-0613", "gpt-3.5-turbo-instruct", "gpt-4", + "gpt-4o", "gpt-4-0314", "gpt-4-0613", "gpt-4-1106-preview", @@ -479,7 +482,7 @@ "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "Select this option to specify a custom model name for local or self-hosted LLMs compatible with OpenAI." + "Custom model name set by `chatgpt.gpt3.customModel`" ] }, "chatgpt.gpt3.customModel": { diff --git a/src/openai.ts b/src/openai.ts index 114c402..a5b81ee 100644 --- a/src/openai.ts +++ b/src/openai.ts @@ -87,12 +87,10 @@ export async function initGptModel(viewProvider: ChatGptViewProvider, config: Mo }); } - if (tools.length > 0) { - tools.push(new WebBrowser({ - model: viewProvider.apiChat, - embeddings: embeddings, - })); - } + tools.push(new WebBrowser({ + model: viewProvider.apiChat, + embeddings: embeddings, + })); const systemContext = `Your task is to embody the role of an intelligent, helpful, and expert developer. You MUST provide accurate and truthful answers, adhering strictly to the instructions given.