Documentation specifies defaults but they are not actually used #1113
Labels
documentation
This is a problem with documentation
needs-triage
This issue or PR still needs to be triaged.
Describe the issue
Documentation explicitly specifies that the following fields have defaults:
![image](https://private-user-images.githubusercontent.com/9094255/316671446-e6437f99-113f-4518-9c30-2ad6a76a44c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NjAzNTgsIm5iZiI6MTcyMTQ2MDA1OCwicGF0aCI6Ii85MDk0MjU1LzMxNjY3MTQ0Ni1lNjQzN2Y5OS0xMTNmLTQ1MTgtOWMzMC0yYWQ2YTc2YTQ0YzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjBUMDcyMDU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2QwMWE2NDlkYmZlMGQ3YThkNjEwMmRlZmRlYmM1ZWQxODRhYWI0ZmQ1ZGIxODk0ZTIxNDIxNGQ2NGZmYTc3NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Xo_J5-i48cordMVuITqB_Tv1BW9GfVOK55Vs89u3MLU)
But they are actually not applied. If the builder doesn't explicitly specify them, they will instead be explicitly be set to
![image](https://private-user-images.githubusercontent.com/9094255/316671583-8858a112-ec12-4ac0-aad5-9d69057836ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NjAzNTgsIm5iZiI6MTcyMTQ2MDA1OCwicGF0aCI6Ii85MDk0MjU1LzMxNjY3MTU4My04ODU4YTExMi1lYzEyLTRhYzAtYWFkNS05ZDY5MDU3ODM2YWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjBUMDcyMDU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzA0ODIwOWVmZWYyOGZjOGRjOTU4YjYyZmM2ZWU2YjJiYzE2ZTU0YWZlN2UyOWEyM2RiOTZjNTM5MmQ2NDNkYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.r00TuxSLyCs-4XODYLRU967iQCnXLum29TTcguh-wRo)
None
This makes the request fail with error:
Setting those explicitly on
InvokeModelFluentBuilder
avoids the error:Links
https://docs.rs/aws-sdk-bedrockruntime/1.18.0/aws_sdk_bedrockruntime/operation/invoke_model/builders/struct.InvokeModelFluentBuilder.html
https://docs.rs/aws-sdk-bedrockruntime/1.18.0/aws_sdk_bedrockruntime/operation/invoke_model/struct.InvokeModelInput.html
The text was updated successfully, but these errors were encountered: