You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// gui relies on model info to be up-to-date to provide the most accurate pricing, so we need to fetch the latest details on launch.
556
-
// we do this for all users since many users switch between api providers and if they were to switch back to openrouter it would be showing outdated model info if we hadn't retrieved the latest at this point
// update model info in state (this needs to be done here since we don't want to update state while settings is open, and we may refresh models there)
561
-
const{ apiConfiguration }=awaitthis.getState()
562
-
if(apiConfiguration.requestyModelId){
563
-
awaitthis.updateGlobalState(
564
-
"requestyModelInfo",
565
-
requestyModels[apiConfiguration.requestyModelId],
566
-
)
567
-
awaitthis.postStateToWebview()
568
-
}
556
+
// gui relies on model info to be up-to-date to provide the most accurate pricing, so we need to fetch the latest details on launch.
557
+
// we do this for all users since many users switch between api providers and if they were to switch back to openrouter it would be showing outdated model info if we hadn't retrieved the latest at this point
0 commit comments