Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#5578 from code-october/fix/safe-equal
Browse files Browse the repository at this point in the history
use safe equal operation
  • Loading branch information
lloydzhou authored Oct 3, 2024
2 parents cea5b91 + fbb66a4 commit 05e6e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export function getHeaders(ignoreHeaders: boolean = false) {

function getConfig() {
const modelConfig = chatStore.currentSession().mask.modelConfig;
const isGoogle = modelConfig.providerName == ServiceProvider.Google;
const isGoogle = modelConfig.providerName === ServiceProvider.Google;
const isAzure = modelConfig.providerName === ServiceProvider.Azure;
const isAnthropic = modelConfig.providerName === ServiceProvider.Anthropic;
const isBaidu = modelConfig.providerName == ServiceProvider.Baidu;
Expand Down

0 comments on commit 05e6e4b

Please sign in to comment.