@@ -541,6 +541,54 @@ def test_bedrock_runtime_invoke_model_command(self):
541541 },
542542 span_name = "Bedrock Runtime.InvokeModel" ,
543543 )
544+
545+ def test_bedrock_runtime_invoke_model_jamba (self ):
546+ self .do_test_requests (
547+ "bedrock/invokemodel/invoke-model-jamba" ,
548+ "GET" ,
549+ 200 ,
550+ 0 ,
551+ 0 ,
552+ rpc_service = "Bedrock Runtime" ,
553+ remote_service = "AWS::BedrockRuntime" ,
554+ remote_operation = "InvokeModel" ,
555+ remote_resource_type = "AWS::Bedrock::Model" ,
556+ remote_resource_identifier = "ai21.jamba-1-5-large-v1:0" ,
557+ request_specific_attributes = {
558+ _GEN_AI_REQUEST_MODEL : "ai21.jamba-1-5-large-v1:0" ,
559+ _GEN_AI_REQUEST_TEMPERATURE : 0.123 ,
560+ _GEN_AI_REQUEST_TOP_P : 0.456 ,
561+ _GEN_AI_REQUEST_MAX_TOKENS : 123 ,
562+ _GEN_AI_USAGE_INPUT_TOKENS : 456 ,
563+ _GEN_AI_USAGE_OUTPUT_TOKENS : 789 ,
564+ _GEN_AI_RESPONSE_FINISH_REASONS : ["finish_reason" ],
565+ },
566+ span_name = "Bedrock Runtime.InvokeModel" ,
567+ )
568+
569+ def test_bedrock_runtime_invoke_model_mistral (self ):
570+ self .do_test_requests (
571+ "bedrock/invokemodel/invoke-model-mistral" ,
572+ "GET" ,
573+ 200 ,
574+ 0 ,
575+ 0 ,
576+ rpc_service = "Bedrock Runtime" ,
577+ remote_service = "AWS::BedrockRuntime" ,
578+ remote_operation = "InvokeModel" ,
579+ remote_resource_type = "AWS::Bedrock::Model" ,
580+ remote_resource_identifier = "mistral.mistral-7b-instruct-v0:2" ,
581+ request_specific_attributes = {
582+ _GEN_AI_REQUEST_MODEL : "mistral.mistral-7b-instruct-v0:2" ,
583+ _GEN_AI_REQUEST_TEMPERATURE : 0.123 ,
584+ _GEN_AI_REQUEST_TOP_P : 0.456 ,
585+ _GEN_AI_REQUEST_MAX_TOKENS : 123 ,
586+ _GEN_AI_USAGE_INPUT_TOKENS : 12 ,
587+ _GEN_AI_USAGE_OUTPUT_TOKENS : 10 ,
588+ _GEN_AI_RESPONSE_FINISH_REASONS : ["finish_reason" ],
589+ },
590+ span_name = "Bedrock Runtime.InvokeModel" ,
591+ )
544592
545593 def test_bedrock_agent_runtime_invoke_agent (self ):
546594 self .do_test_requests (
0 commit comments