mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: create new Requesty profile during OAuth instead of updating default
This commit is contained in:
parent
0e7a878fa5
commit
5148255975
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue