Skip to content

Commit

Permalink
fix: model name
Browse files Browse the repository at this point in the history
  • Loading branch information
anc95 committed Mar 12, 2024
1 parent bea66e8 commit 3faed52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/api/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ export const useQueryOpenAIPrompt = () => {
const commonOption = {
// max_tokens: 4000 - prompt.replace(/[\u4e00-\u9fa5]/g, 'aa').length,
stream: true,
model: ensureUsing0613Model(
isWritelyService ? defaultSetting.model : settings.model
),
model: isWritelyService ? defaultSetting.model : settings.model,
temperature: parseFloat(settings.temperature),
}

Expand Down

0 comments on commit 3faed52

Please sign in to comment.