Skip to content

Commit 234c972

Browse files
Remove comments
1 parent cb14dcc commit 234c972

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

packages/instrumentation-openai/src/instrumentation.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -415,27 +415,6 @@ export class OpenAIInstrumentation extends InstrumentationBase {
415415
}
416416
}
417417
}
418-
// if (chunk.choices[0]?.delta.tool_calls) {
419-
// I needed to re-build the object so that Typescript will understand that arguments are not null.
420-
// result.choices[0].message.tool_calls = [];
421-
// for (const toolCall of chunk.choices[0].delta.tool_calls) {
422-
// if (
423-
// toolCall.id &&
424-
// toolCall.type &&
425-
// toolCall.function?.name &&
426-
// toolCall.function?.arguments
427-
// ) {
428-
// result.choices[0].message.tool_calls.push({
429-
// id: toolCall.id,
430-
// type: toolCall.type,
431-
// function: {
432-
// name: toolCall.function.name,
433-
// arguments: toolCall.function.arguments,
434-
// },
435-
// });
436-
// }
437-
// }
438-
// }
439418
}
440419

441420
if (result.choices[0].logprobs?.content) {

0 commit comments

Comments
 (0)