Skip to content

Commit

Permalink
feat: use 4o mini to replace 3.5 turbo fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Aug 5, 2024
1 parent ec3e45a commit 0642015
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class OpenAIProvider
// text to text
'gpt-4o',
'gpt-4o-mini',
'gpt-3.5-turbo',
// embeddings
'text-embedding-3-large',
'text-embedding-3-small',
Expand Down Expand Up @@ -201,7 +200,7 @@ export class OpenAIProvider
// ====== text to text ======
async generateText(
messages: PromptMessage[],
model: string = 'gpt-3.5-turbo',
model: string = 'gpt-4o-mini',
options: CopilotChatOptions = {}
): Promise<string> {
this.checkParams({ messages, model, options });
Expand Down Expand Up @@ -230,7 +229,7 @@ export class OpenAIProvider

async *generateTextStream(
messages: PromptMessage[],
model: string = 'gpt-3.5-turbo',
model: string = 'gpt-4o-mini',
options: CopilotChatOptions = {}
): AsyncIterable<string> {
this.checkParams({ messages, model, options });
Expand Down
1 change: 0 additions & 1 deletion packages/backend/server/src/plugins/copilot/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export enum AvailableModels {
// text to text
Gpt4Omni = 'gpt-4o',
Gpt4OmniMini = 'gpt-4o-mini',
Gpt35Turbo = 'gpt-3.5-turbo',
// embeddings
TextEmbedding3Large = 'text-embedding-3-large',
TextEmbedding3Small = 'text-embedding-3-small',
Expand Down
1 change: 0 additions & 1 deletion packages/backend/server/src/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ enum CopilotModels {
DallE3
Gpt4Omni
Gpt4OmniMini
Gpt35Turbo
TextEmbedding3Large
TextEmbedding3Small
TextEmbeddingAda002
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/server/tests/utils/copilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class MockCopilotTestProvider

override async *generateTextStream(
messages: PromptMessage[],
model: string = 'gpt-3.5-turbo',
model: string = 'gpt-4o-mini',
options: CopilotChatOptions = {}
): AsyncIterable<string> {
this.checkParams({ messages, model, options });
Expand Down
1 change: 0 additions & 1 deletion packages/frontend/graphql/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export enum CopilotModels {
DallE3 = 'DallE3',
Gpt4Omni = 'Gpt4Omni',
Gpt4OmniMini = 'Gpt4OmniMini',
Gpt35Turbo = 'Gpt35Turbo',
TextEmbedding3Large = 'TextEmbedding3Large',
TextEmbedding3Small = 'TextEmbedding3Small',
TextEmbeddingAda002 = 'TextEmbeddingAda002',
Expand Down

0 comments on commit 0642015

Please sign in to comment.