Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd committed Jul 26, 2024
1 parent e7214ec commit a126389
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions js/src/wrappers/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,11 @@ const _wrapClient = <T extends object>(
get(target, propKey, receiver) {
const originalValue = target[propKey as keyof T];
if (typeof originalValue === "function") {
return traceable(
originalValue.bind(target),
Object.assign({ run_type: "llm" }, options, {
name: [runName, propKey.toString()].join("."),
})
);
return traceable(originalValue.bind(target), {
run_type: "llm",
...options,
name: [runName, propKey.toString()].join("."),
});
} else if (
originalValue != null &&
!Array.isArray(originalValue) &&
Expand Down

0 comments on commit a126389

Please sign in to comment.