Skip to content

Commit

Permalink
Merge pull request #110 from restlessronin/support-0613
Browse files Browse the repository at this point in the history
Added support for gpt-4-1106-preview
  • Loading branch information
lgrammel authored Nov 29, 2023
2 parents ecbe183 + c346f77 commit 3002b51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/vscode/asset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,19 +221,23 @@
},
"rubberduck.model": {
"type": "string",
"default": "gpt-3.5-turbo-16k",
"default": "gpt-3.5-turbo-1106",
"enum": [
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-1106",
"gpt-4",
"gpt-4-32k",
"gpt-4-1106-preview",
"llama.cpp"
],
"enumDescriptions": [
"OpenAI GPT-3.5-turbo: 4k context window. Faster, less expensive model. Less accurate.",
"OpenAI GPT-3.5-turbo: 16k context window. Faster, less expensive model. Less accurate.",
"OpenAI GPT-3.5-turbo: 16k context window. Latest 3.5 model. Faster, less expensive. Less accurate.",
"OpenAI GPT-4: 8k context window. Expensive, slow model. More accurate.",
"OpenAI GPT-4: 32k context window.Expensive, slow model. More accurate. Requires beta access.",
"OpenAI GPT-4: 32k context window. Expensive, slow model. More accurate.",
"OpenAI GPT-4: 128k context window. Latest model. Expensive (but cheaper than 32k), slow model. More accurate.",
"(Experimental) Llama.cpp: Calls Llama.cpp running locally on http://127.0.0.1:8080. Use for local models with Llama 2 prompt format."
],
"markdownDescription": "Select the OpenAI model that you want to use.",
Expand Down
2 changes: 2 additions & 0 deletions lib/extension/src/ai/AIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ function getModel() {
.enum([
"gpt-4",
"gpt-4-32k",
"gpt-4-1106-preview",
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-1106",
"llama.cpp",
])
.parse(vscode.workspace.getConfiguration("rubberduck").get("model"));
Expand Down

0 comments on commit 3002b51

Please sign in to comment.