Skip to content

Commit

Permalink
feat: update default model to gpt-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
chouch0u committed Jul 19, 2024
1 parent c0bc667 commit 3f86cb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const defaultConfig = {
],
/* Model type, for now use open ai template */
model: {
model: 'gpt-3.5-turbo',
model: 'gpt-4o-mini',
temperature: 1,
top_p: 0.9,
frequency_penalty: 0,
Expand All @@ -106,7 +106,7 @@ export const SUPER_BUTTON_STATUS = {
export const WEBPILOT_OPENAI = {
AUTH_KEY: 'KEY_PLACEHOLDER',
HOST_URL: 'https://api.webpilotai.com/api/webpilot',
MODEL: 'gpt-3.5-turbo',
MODEL: 'gpt-4o-mini',
}

export const LAST_PROMPT_STORAGE_KEY = {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAskAi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default function useAskAi() {
}
if (isAskPage) {
// Global popup,use 0125 as default`
model.model = 'gpt-3.5-turbo-0125'
model.model = 'gpt-4o-mini'
}

let storeAuthKey = currentConfig.authKey
Expand Down
2 changes: 1 addition & 1 deletion src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function askOpenAI({authKey, model, message, baseURL = null, apiOri
// Reassemble model and process long content request
const requestModel = {...model}
requestModel.messages =
requestModel.model === 'gpt-3.5-turbo-0125' ? getNewCutMessages(message) : message
requestModel.model === 'gpt-4o-mini' ? getNewCutMessages(message) : message
requestModel.stream = true

// Assemble url
Expand Down

0 comments on commit 3f86cb2

Please sign in to comment.