Skip to content

Commit 650eb93

Browse files
committed
chore: apply lint
1 parent fae5c83 commit 650eb93

File tree

1 file changed

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

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,15 @@ export class BedrockRuntimeServiceExtension implements ServiceExtension {
215215
const requestBody = JSON.parse(request.commandInput.body);
216216
if (modelId.includes('amazon.titan')) {
217217
if (requestBody.textGenerationConfig?.temperature !== undefined) {
218-
spanAttributes[AwsSpanProcessingUtil.GEN_AI_REQUEST_TEMPERATURE] = requestBody.textGenerationConfig.temperature;
218+
spanAttributes[AwsSpanProcessingUtil.GEN_AI_REQUEST_TEMPERATURE] =
219+
requestBody.textGenerationConfig.temperature;
219220
}
220221
if (requestBody.textGenerationConfig?.topP !== undefined) {
221222
spanAttributes[AwsSpanProcessingUtil.GEN_AI_REQUEST_TOP_P] = requestBody.textGenerationConfig.topP;
222223
}
223-
if (requestBody.textGenerationConfig?.maxTokenCount != undefined) {
224-
spanAttributes[AwsSpanProcessingUtil.GEN_AI_REQUEST_MAX_TOKENS] = requestBody.textGenerationConfig.maxTokenCount;
224+
if (requestBody.textGenerationConfig?.maxTokenCount !== undefined) {
225+
spanAttributes[AwsSpanProcessingUtil.GEN_AI_REQUEST_MAX_TOKENS] =
226+
requestBody.textGenerationConfig.maxTokenCount;
225227
}
226228
} else if (modelId.includes('anthropic.claude')) {
227229
if (requestBody.max_tokens !== undefined) {

0 commit comments

Comments
 (0)