Skip to content

Commit a649a53

Browse files
authored
Move remaining provider settings into separate components (#3208)
1 parent ce8fbbd commit a649a53

38 files changed

+917
-558
lines changed

evals/packages/types/src/roo-code.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ export const providerSettingsSchema = z.object({
355355
awsRegion: z.string().optional(),
356356
awsUseCrossRegionInference: z.boolean().optional(),
357357
awsUsePromptCache: z.boolean().optional(),
358-
awspromptCacheId: z.string().optional(),
359358
awsProfile: z.string().optional(),
360359
awsUseProfile: z.boolean().optional(),
361360
awsCustomArn: z.string().optional(),
@@ -455,7 +454,6 @@ const providerSettingsRecord: ProviderSettingsRecord = {
455454
awsRegion: undefined,
456455
awsUseCrossRegionInference: undefined,
457456
awsUsePromptCache: undefined,
458-
awspromptCacheId: undefined,
459457
awsProfile: undefined,
460458
awsUseProfile: undefined,
461459
awsCustomArn: undefined,

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { GlobalState, ProviderSettings, RooCodeSettings } from "../../schemas"
1313
import { t } from "../../i18n"
1414
import { setPanel } from "../../activate/registerCommands"
1515
import {
16+
ProviderName,
1617
ApiConfiguration,
17-
ApiProvider,
1818
requestyDefaultModelId,
1919
openRouterDefaultModelId,
2020
glamaDefaultModelId,
@@ -1297,7 +1297,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
12971297
const customModes = await this.customModesManager.getCustomModes()
12981298

12991299
// Determine apiProvider with the same logic as before.
1300-
const apiProvider: ApiProvider = stateValues.apiProvider ? stateValues.apiProvider : "anthropic"
1300+
const apiProvider: ProviderName = stateValues.apiProvider ? stateValues.apiProvider : "anthropic"
13011301

13021302
// Build the apiConfiguration object combining state values and secrets.
13031303
const providerSettings = this.contextProxy.getProviderSettings()

src/exports/roo-code.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ type ProviderSettings = {
4242
awsRegion?: string | undefined
4343
awsUseCrossRegionInference?: boolean | undefined
4444
awsUsePromptCache?: boolean | undefined
45-
awspromptCacheId?: string | undefined
4645
awsProfile?: string | undefined
4746
awsUseProfile?: boolean | undefined
4847
awsCustomArn?: string | undefined

src/exports/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ type ProviderSettings = {
4343
awsRegion?: string | undefined
4444
awsUseCrossRegionInference?: boolean | undefined
4545
awsUsePromptCache?: boolean | undefined
46-
awspromptCacheId?: string | undefined
4746
awsProfile?: string | undefined
4847
awsUseProfile?: boolean | undefined
4948
awsCustomArn?: string | undefined

src/schemas/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ export const providerSettingsSchema = z.object({
366366
awsRegion: z.string().optional(),
367367
awsUseCrossRegionInference: z.boolean().optional(),
368368
awsUsePromptCache: z.boolean().optional(),
369-
awspromptCacheId: z.string().optional(),
370369
awsProfile: z.string().optional(),
371370
awsUseProfile: z.boolean().optional(),
372371
awsCustomArn: z.string().optional(),
@@ -471,7 +470,6 @@ const providerSettingsRecord: ProviderSettingsRecord = {
471470
awsRegion: undefined,
472471
awsUseCrossRegionInference: undefined,
473472
awsUsePromptCache: undefined,
474-
awspromptCacheId: undefined,
475473
awsProfile: undefined,
476474
awsUseProfile: undefined,
477475
awsCustomArn: undefined,

src/shared/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ModelInfo, ProviderName, ProviderSettings } from "../schemas"
22

3-
export type { ModelInfo, ProviderName as ApiProvider }
3+
export type { ModelInfo, ProviderName }
44

55
export type ApiHandlerOptions = Omit<ProviderSettings, "apiProvider" | "id">
66

0 commit comments

Comments
 (0)