mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Bedrock: workaround LiteLLM passthrough issues (#6778)
Explicitly setting requestTimeout seems to be required for it to be possible to use the Bedrock provider with LiteLLM Bedrock passthrough.
This commit is contained in:
parent
75b861c845
commit
cdc31f7c26
1 changed files with 5 additions and 0 deletions
|
|
@ -226,6 +226,11 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
|
|||
// Use API key/token-based authentication if enabled and API key is set
|
||||
clientConfig.token = { token: this.options.awsApiKey }
|
||||
clientConfig.authSchemePreference = ["httpBearerAuth"] // Otherwise there's no end of credential problems.
|
||||
clientConfig.requestHandler = {
|
||||
// This should be the default anyway, but without setting something
|
||||
// this provider fails to work with LiteLLM passthrough.
|
||||
requestTimeout: 0,
|
||||
}
|
||||
} else if (this.options.awsUseProfile && this.options.awsProfile) {
|
||||
// Use profile-based credentials if enabled and profile is set
|
||||
clientConfig.credentials = fromIni({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue