Skip to content

Commit

Permalink
Support gpt-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer committed Jun 2, 2024
1 parent d5b0789 commit a56c454
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v4.4.3

* Support GPT-4o

## v4.4.2

* Support custom model names for local or self-hosted LLMs
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
10 changes: 4 additions & 6 deletions src/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a56c454

Please sign in to comment.