Skip to content

Commit ced18cb

Browse files
committed
fix: mistral ai model conditional
1 parent a3355ea commit ced18cb

File tree

1 file changed

+1
-1
lines changed
  • aws-distro-opentelemetry-node-autoinstrumentation/src/patches/aws/services

1 file changed

+1
-1
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/patches/aws/services/bedrock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export class BedrockRuntimeServiceExtension implements ServiceExtension {
386386
responseBody.choices[0].finish_reason,
387387
]);
388388
}
389-
} else if (currentModelId.includes('mistral.mistral')) {
389+
} else if (currentModelId.includes('mistral')) {
390390
if (responseBody.outputs?.[0]?.text !== undefined) {
391391
span.setAttribute(
392392
AwsSpanProcessingUtil.GEN_AI_USAGE_OUTPUT_TOKENS,

0 commit comments

Comments
 (0)