@@ -206,6 +206,31 @@ const DEEPSEEK_DEFAULT_PARAMS: ConverseInferenceParams = {
206206 } ,
207207} ;
208208
209+ // Qwen3 model parameters based on actual AWS Bedrock limits
210+ const QWEN_16K_DEFAULT_PARAMS : ConverseInferenceParams = {
211+ inferenceConfig : {
212+ maxTokens : 16384 ,
213+ temperature : 0.7 ,
214+ topP : 0.9 ,
215+ } ,
216+ } ;
217+
218+ const QWEN_64K_DEFAULT_PARAMS : ConverseInferenceParams = {
219+ inferenceConfig : {
220+ maxTokens : 65536 ,
221+ temperature : 0.7 ,
222+ topP : 0.9 ,
223+ } ,
224+ } ;
225+
226+ const QWEN_192K_DEFAULT_PARAMS : ConverseInferenceParams = {
227+ inferenceConfig : {
228+ maxTokens : 196608 ,
229+ temperature : 0.7 ,
230+ topP : 0.9 ,
231+ } ,
232+ } ;
233+
209234const PALMYRA_DEFAULT_PARAMS : ConverseInferenceParams = {
210235 inferenceConfig : {
211236 maxTokens : 8192 ,
@@ -1491,6 +1516,38 @@ export const BEDROCK_TEXT_GEN_MODELS: {
14911516 extractConverseOutput : extractConverseOutput ,
14921517 extractConverseStreamOutput : extractConverseStreamOutput ,
14931518 } ,
1519+ 'qwen.qwen3-235b-a22b-2507-v1:0' : {
1520+ defaultParams : QWEN_192K_DEFAULT_PARAMS ,
1521+ usecaseParams : USECASE_DEFAULT_PARAMS ,
1522+ createConverseCommandInput : createConverseCommandInput ,
1523+ createConverseStreamCommandInput : createConverseStreamCommandInput ,
1524+ extractConverseOutput : extractConverseOutput ,
1525+ extractConverseStreamOutput : extractConverseStreamOutput ,
1526+ } ,
1527+ 'qwen.qwen3-32b-v1:0' : {
1528+ defaultParams : QWEN_16K_DEFAULT_PARAMS ,
1529+ usecaseParams : USECASE_DEFAULT_PARAMS ,
1530+ createConverseCommandInput : createConverseCommandInput ,
1531+ createConverseStreamCommandInput : createConverseStreamCommandInput ,
1532+ extractConverseOutput : extractConverseOutput ,
1533+ extractConverseStreamOutput : extractConverseStreamOutput ,
1534+ } ,
1535+ 'qwen.qwen3-coder-480b-a35b-v1:0' : {
1536+ defaultParams : QWEN_64K_DEFAULT_PARAMS ,
1537+ usecaseParams : USECASE_DEFAULT_PARAMS ,
1538+ createConverseCommandInput : createConverseCommandInput ,
1539+ createConverseStreamCommandInput : createConverseStreamCommandInput ,
1540+ extractConverseOutput : extractConverseOutput ,
1541+ extractConverseStreamOutput : extractConverseStreamOutput ,
1542+ } ,
1543+ 'qwen.qwen3-coder-30b-a3b-v1:0' : {
1544+ defaultParams : QWEN_192K_DEFAULT_PARAMS ,
1545+ usecaseParams : USECASE_DEFAULT_PARAMS ,
1546+ createConverseCommandInput : createConverseCommandInput ,
1547+ createConverseStreamCommandInput : createConverseStreamCommandInput ,
1548+ extractConverseOutput : extractConverseOutput ,
1549+ extractConverseStreamOutput : extractConverseStreamOutput ,
1550+ } ,
14941551 // Although Palmyra supports system context, the model seems work best without it.
14951552 'us.writer.palmyra-x4-v1:0' : {
14961553 defaultParams : PALMYRA_DEFAULT_PARAMS ,
0 commit comments