Bedrock sdk missing api support for outputdataconfig on InvokeModel? #3166
Unanswered
EZWrighter asked this question in Q&A
Replies: 4 comments 3 replies
-
There isn't a
|
BetaWas this translation helpful?Give feedback.
2 replies
-
The only real Bedrock Nova Reel example I found: https://docs.aws.amazon.com/nova/latest/userguide/video-gen-code-examples.html Example of using other Bedrock models in java with outputDataConfig in invocation: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-example.html Maybe you have a better example? For me the AWS documentation across the board is such a mess it's hard to find anything. But I also try not to spend my days wading through docs on AWS :-P …On Fri, Dec 13, 2024 at 11:28 AM Debora N. Ito ***@***.***> wrote: All of the other APIs, even sdk v2 uses the outputDataConfig at invocation. Which APIs would those be, can you point to a documentation link? — Reply to this email directly, view it on GitHub <#3166 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADR7Q4HORNPKSSFYMZ3PKT2FMYOFAVCNFSM6AAAAABTQT55W6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNJWGEZDIMA> . You are receiving this because you authored the thread.Message ID: ***@***.***> |
BetaWas this translation helpful?Give feedback.
1 reply
-
Ahh, that is awesome...thanks, didn't expect that Class name :-D I will give it a try. …On Fri, Dec 13, 2024 at 3:39 PM Debora N. Ito ***@***.***> wrote: Got it, thank you for the links. Sorry, in my previous comment I searched for the OutputDataConfig class, but the data type for the BedrockRuntime StartAsyncInvoke API is called AsyncInvokeOutputDataConfig. Here's the Javadoc for the StartAsyncInvoke request builder: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/bedrockruntime/model/StartAsyncInvokeRequest.Builder.html StartAsyncInvokeRequest request = StartAsyncInvokeRequest.builder() .modelId("amazon.nova-reel-v1:0") .modelInput(MODELINPUT) .outputDataConfig(AsyncInvokeOutputDataConfig.builder() .s3OutputDataConfig(AsyncInvokeS3OutputDataConfig.builder().s3Uri("s3://my-bucket").build()) .build()) .build(); StartAsyncInvokeResponse response = client.startAsyncInvoke(request); — Reply to this email directly, view it on GitHub <#3166 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADR7QZFBBDVZQUOBIKQXH32FNV3BAVCNFSM6AAAAABTQT55W6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNJWGI3TMNY> . You are receiving this because you authored the thread.Message ID: ***@***.***> |
BetaWas this translation helpful?Give feedback.
0 replies
-
Also strange that only the async request has this configuration during the invoke. I would expect the sync api to match that functionality. Eric …On Fri, Dec 13, 2024 at 3:39 PM Debora N. Ito ***@***.***> wrote: Got it, thank you for the links. Sorry, in my previous comment I searched for the OutputDataConfig class, but the data type for the BedrockRuntime StartAsyncInvoke API is called AsyncInvokeOutputDataConfig. Here's the Javadoc for the StartAsyncInvoke request builder: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/bedrockruntime/model/StartAsyncInvokeRequest.Builder.html StartAsyncInvokeRequest request = StartAsyncInvokeRequest.builder() .modelId("amazon.nova-reel-v1:0") .modelInput(MODELINPUT) .outputDataConfig(AsyncInvokeOutputDataConfig.builder() .s3OutputDataConfig(AsyncInvokeS3OutputDataConfig.builder().s3Uri("s3://my-bucket").build()) .build()) .build(); StartAsyncInvokeResponse response = client.startAsyncInvoke(request); — Reply to this email directly, view it on GitHub <#3166 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADR7QZFBBDVZQUOBIKQXH32FNV3BAVCNFSM6AAAAABTQT55W6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNJWGI3TMNY> . You are receiving this because you authored the thread.Message ID: ***@***.***> |
BetaWas this translation helpful?Give feedback.
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to use SDK to call bedrock model TEXT_VIDEO with amazon.nova-reel-v1:0 and cannot find the API to set the OutputDataConfig on the request or during the call to InvokeModel() on the AmazonBedrockRuntime. Some way to bypass this issue with InvokeModelRequest setup?
BetaWas this translation helpful?Give feedback.
All reactions