Skip to content

Commit 7d1a5ce

Browse files
committed
fix by cr
1 parent 3480e68 commit 7d1a5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/traceloop-sdk/src/lib/tracing/ai-sdk-transformations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const transformVendor = (attributes: Record<string, any>): void => {
113113

114114
// Find matching vendor prefix in mapping
115115
let mappedVendor = null;
116-
if (vendor && vendor.length > 0) {
116+
if (typeof vendor === "string" && vendor.length > 0) {
117117
for (const prefix of Object.keys(VENDOR_MAPPING)) {
118118
if (vendor.startsWith(prefix)) {
119119
mappedVendor = VENDOR_MAPPING[prefix];

0 commit comments

Comments
 (0)