Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ describe("formatOutputMessage", () => {
assert.strictEqual(result[0].finish_reason, "some_unknown_reason");
});

it("omits finish_reason when stopReason is null", () => {
it("sets finish_reason to empty string when stopReason is null", () => {
const result = JSON.parse(
formatOutputMessage(
fixtures.outputMessages.text_only,
Expand All @@ -526,7 +526,7 @@ describe("formatOutputMessage", () => {
mapAnthropicContentBlock,
),
);
assert.strictEqual(result[0].finish_reason, undefined);
assert.strictEqual(result[0].finish_reason, "");
});

it("formats tool_use output as ToolCallRequestPart", () => {
Expand Down
8 changes: 5 additions & 3 deletions packages/instrumentation-bedrock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build": "rollup -c",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "ts-mocha -p tsconfig.test.json 'tests/**/*.test.ts' --timeout 20000"
"test": "ts-mocha -p tsconfig.test.json 'tests/**/*.test.ts' --timeout 20000",
"test:unit": "ts-mocha -p tsconfig.test.json 'tests/semconv.test.ts' 'tests/finish_reasons.test.ts' 'tests/content_parts.test.ts' --timeout 20000"
},
"keywords": [
"opentelemetry",
Expand Down Expand Up @@ -41,8 +42,9 @@
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/core": "^2.0.1",
"@opentelemetry/instrumentation": "^0.203.0",
"@opentelemetry/semantic-conventions": "^1.38.0",
"@opentelemetry/semantic-conventions": "^1.40.0",
"@traceloop/ai-semantic-conventions": "workspace:*",
"@traceloop/instrumentation-utils": "workspace:*",
"tslib": "^2.8.1"
},
"devDependencies": {
Expand All @@ -56,6 +58,6 @@
"@types/mocha": "^10.0.10",
"ts-mocha": "^11.1.0"
},
"homepage": "https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-openai",
"homepage": "https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-bedrock",
"gitHead": "ef1e70d6037f7b5c061056ef2be16e3f55f02ed5"
}
Loading
Loading