fix: create new Requesty profile during OAuth instead of updating default

This commit is contained in:
Thibault Jaigu 2025-10-17 11:51:36 +01:00 committed by John Costa
parent 0e7a878fa5
commit 5148255975
No known key found for this signature in database

View file

@ -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,
}
await this.upsertProviderProfile(currentApiConfigName, newConfiguration)
await this.upsertProviderProfile("Requesty", newConfiguration)
}
// Task history