fetch-event-source
fetch-event-source copied to clipboard
If there is a space in front of the data, it will be truncated
trafficstars
for examole: data: exp the space in front of exp will be subArray.
const valueOffset = fieldLength + (line[fieldLength + 1] === 32 ? 1 : 1);
it should be:
const valueOffset = fieldLength + 1;
我也遇到这个问题,在使用chatgpt功能的时候
@echofly/fetch-event-source,用这个包,修复了这个问题