Add Bedrock global and jp inference profile support. (#6666)
* Add Bedrock global and jp inference profile support. * Update package-lock.json after merging latest main Regenerated package-lock.json to reflect the latest dependency changes from the merged main branch updates. * Revert "Update package-lock.json after merging latest main" This reverts commit 2fa79acd383bd0e3b589a7137974f3ce2d295316.
This commit is contained in:
1 parent
9f25f8ae42
commit
1eaeb1812d
12 files changed
+169
-85
No files matched your search
@@ -87,6 +87,7 @@ export interface ApiHandlerOptions {
|
||||
openRouterProviderSorting?: string
|
||||
awsRegion?: string
|
||||
awsUseCrossRegionInference?: boolean
|
||||
awsUseGlobalInference?: boolean
|
||||
awsBedrockUsePromptCache?: boolean
|
||||
awsAuthentication?: string
|
||||
awsUseProfile?: boolean
|
||||
@@ -438,6 +439,7 @@ export const bedrockModels = {
|
||||
contextWindow: 200_000,
|
||||
supportsImages: true,
|
||||
supportsPromptCache: true,
|
||||
supportsGlobalEndpoint: true,
|
||||
inputPrice: 3.0,
|
||||
outputPrice: 15.0,
|
||||
cacheWritesPrice: 3.75,
|
||||
@@ -448,6 +450,7 @@ export const bedrockModels = {
|
||||
contextWindow: 1_000_000,
|
||||
supportsImages: true,
|
||||
supportsPromptCache: true,
|
||||
supportsGlobalEndpoint: true,
|
||||
inputPrice: 3.0,
|
||||
outputPrice: 15.0,
|
||||
cacheWritesPrice: 3.75,
|
||||
@@ -459,6 +462,7 @@ export const bedrockModels = {
|
||||
contextWindow: 200_000,
|
||||
supportsImages: true,
|
||||
supportsPromptCache: true,
|
||||
supportsGlobalEndpoint: true,
|
||||
inputPrice: 3.0,
|
||||
outputPrice: 15.0,
|
||||
cacheWritesPrice: 3.75,
|
||||
@@ -469,6 +473,7 @@ export const bedrockModels = {
|
||||
contextWindow: 1_000_000,
|
||||
supportsImages: true,
|
||||
supportsPromptCache: true,
|
||||
supportsGlobalEndpoint: true,
|
||||
inputPrice: 3.0,
|
||||
outputPrice: 15.0,
|
||||
cacheWritesPrice: 3.75,
|
||||
|
||||
@@ -411,6 +411,7 @@ export function convertApiConfigurationToProto(config: ApiConfiguration): ProtoA
|
||||
awsSessionToken: config.awsSessionToken,
|
||||
awsRegion: config.awsRegion,
|
||||
awsUseCrossRegionInference: config.awsUseCrossRegionInference,
|
||||
awsUseGlobalInference: config.awsUseGlobalInference,
|
||||
awsBedrockUsePromptCache: config.awsBedrockUsePromptCache,
|
||||
awsUseProfile: config.awsUseProfile,
|
||||
awsAuthentication: config.awsAuthentication,
|
||||
@@ -561,6 +562,7 @@ export function convertProtoToApiConfiguration(protoConfig: ProtoApiConfiguratio
|
||||
awsSessionToken: protoConfig.awsSessionToken,
|
||||
awsRegion: protoConfig.awsRegion,
|
||||
awsUseCrossRegionInference: protoConfig.awsUseCrossRegionInference,
|
||||
awsUseGlobalInference: protoConfig.awsUseGlobalInference,
|
||||
awsBedrockUsePromptCache: protoConfig.awsBedrockUsePromptCache,
|
||||
awsUseProfile: protoConfig.awsUseProfile,
|
||||
awsAuthentication: protoConfig.awsAuthentication,
|
||||
|
||||
Reference in new issue
Block a user