Scale3-Labs / langtrace-typescript-sdk

Langtrace SDK for NodeJS Applications
https://langtrace.ai
Apache License 2.0
3 stars 4 forks source link

Fix "length of undefined" error when delta has no content property #77

Closed cnjsstong closed 5 months ago

cnjsstong commented 5 months ago

Description

Fix the "length of undefined" error when delta has no content property, e.g. sometimes at the beginning of the event stream: {"role": "assistant"} .

Type of change

Please delete options that are not relevant.

Checklist: