Skip to content

Commit

Permalink
Removes deprecated OpenAI models
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Sep 27, 2023
1 parent 628dfe0 commit e89cc50
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2913,25 +2913,19 @@
"enum": [
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-0301",
"gpt-3.5-turbo-0613",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
"gpt-4-32k",
"gpt-4-32k-0314",
"gpt-4-32k-0613"
],
"enumDescriptions": [
"GPT 3.5 Turbo",
"GPT 3.5 Turbo 16k",
"GPT 3.5 Turbo (March 1)",
"GPT 3.5 Turbo (June 13)",
"GPT 4",
"GPT 4 (March 14)",
"GPT 4 (June 13)",
"GPT 4 32k",
"GPT 4 32k (March 14)",
"GPT 4 32k (June 13)"
],
"markdownDescription": "Specifies the OpenAI model to use for GitLens' experimental AI features",
Expand Down
4 changes: 0 additions & 4 deletions src/ai/openaiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ async function getApiKey(storage: Storage): Promise<string | undefined> {
function getMaxCharacters(model: OpenAIModels): number {
switch (model) {
case 'gpt-4-32k':
case 'gpt-4-32k-0314':
case 'gpt-4-32k-0613':
return 43000;
case 'gpt-3.5-turbo-16k':
Expand All @@ -240,13 +239,10 @@ function getMaxCharacters(model: OpenAIModels): number {
export type OpenAIModels =
| 'gpt-3.5-turbo'
| 'gpt-3.5-turbo-16k'
| 'gpt-3.5-turbo-0301'
| 'gpt-3.5-turbo-0613'
| 'gpt-4'
| 'gpt-4-0314'
| 'gpt-4-0613'
| 'gpt-4-32k'
| 'gpt-4-32k-0314'
| 'gpt-4-32k-0613';

interface OpenAIChatCompletionRequest {
Expand Down

0 comments on commit e89cc50

Please sign in to comment.