Skip to content

Commit 5148255

Browse files
Thibault00requesty-JohnCosta27
authored andcommitted
fix: create new Requesty profile during OAuth instead of updating default
1 parent 0e7a878 commit 5148255

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,16 +1457,16 @@ export class ClineProvider
14571457
// Requesty
14581458

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

14621462
const newConfiguration: ProviderSettings = {
14631463
...apiConfiguration,
14641464
apiProvider: "requesty",
14651465
requestyApiKey: code,
1466-
requestyModelId: apiConfiguration?.requestyModelId || requestyDefaultModelId,
1466+
requestyModelId: requestyDefaultModelId,
14671467
}
14681468

1469-
await this.upsertProviderProfile(currentApiConfigName, newConfiguration)
1469+
await this.upsertProviderProfile("Requesty", newConfiguration)
14701470
}
14711471

14721472
// Task history

0 commit comments

Comments
 (0)