Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/webview/ClineProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1457,16 +1457,16 @@ export class ClineProvider
// Requesty

async handleRequestyCallback(code: string) {
let { apiConfiguration, currentApiConfigName = "default" } = await this.getState()
const { apiConfiguration } = await this.getState()

const newConfiguration: ProviderSettings = {
...apiConfiguration,
apiProvider: "requesty",
requestyApiKey: code,
requestyModelId: apiConfiguration?.requestyModelId || requestyDefaultModelId,
requestyModelId: requestyDefaultModelId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the conditional fallback apiConfiguration?.requestyModelId || requestyDefaultModelId means users will lose their custom model selection when re-authenticating with Requesty. Both OpenRouter (line 1418) and Glama (line 1451) handlers preserve the existing model ID if set. Consider restoring: requestyModelId: apiConfiguration?.requestyModelId || requestyDefaultModelId to maintain consistency and preserve user preferences.

}

await this.upsertProviderProfile(currentApiConfigName, newConfiguration)
await this.upsertProviderProfile("Requesty", newConfiguration)
}

// Task history
Expand Down