Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix token expire in aws client #1258

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ coverage/
.DS_Store

# Builds
bin/
roo-cline-*.vsix
# bin/
# roo-cline-*.vsix

# Local prompts and rules
/local-prompts
Expand Down
Binary file added bin/roo-cline-3.7.6.vsix
Binary file not shown.
1 change: 1 addition & 0 deletions src/api/providers/bedrock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class AwsBedrockHandler implements ApiHandler, SingleCompletionHandler {
// Use profile-based credentials if enabled and profile is set
clientConfig.credentials = fromIni({
profile: this.options.awsProfile,
ignoreCache: true,
})
} else if (this.options.awsAccessKey && this.options.awsSecretKey) {
// Use direct credentials if provided
Expand Down
18 changes: 15 additions & 3 deletions src/shared/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,21 @@ export interface MessageContent {
}

export type BedrockModelId = keyof typeof bedrockModels
export const bedrockDefaultModelId: BedrockModelId = "anthropic.claude-3-7-sonnet-20250219-v1:0"
export const bedrockDefaultModelId: BedrockModelId =
"arn:aws:bedrock:us-east-1:396913734285:application-inference-profile/of8cznqafjnb"
export const bedrockModels = {
"amazon.nova-pro-v1:0": {
"arn:aws:bedrock:us-east-1:396913734285:application-inference-profile/of8cznqafjnb": {
maxTokens: 8192,
contextWindow: 200_000,
supportsImages: true,
supportsComputerUse: true,
supportsPromptCache: false,
inputPrice: 3.0,
outputPrice: 15.0,
cacheWritesPrice: 3.75,
cacheReadsPrice: 0.3,
},
/* "amazon.nova-pro-v1:0": {
maxTokens: 5000,
contextWindow: 300_000,
supportsImages: true,
Expand Down Expand Up @@ -377,7 +389,7 @@ export const bedrockModels = {
supportsPromptCache: false,
inputPrice: 0.3,
outputPrice: 0.6,
},
}, */
} as const satisfies Record<string, ModelInfo>

// Glama
Expand Down
Loading