File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
packages/instrumentation-openai/src Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments