You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currentName===nameDelta ? currentName : currentName+nameDelta;// Some models may include the name repeatedly. This doesn't account for an edge case where the name is like "dothisdothis" and it happens to stream name in chunks "dothis" and "dothis" but that's a super edge case
33
+
letmergedName=currentName;
34
+
if(nameDelta.startsWith(currentName)){
35
+
// Case where model progresssively streams name but full name each time e.g. "readFi" -> "readFil" -> "readFile"
36
+
mergedName=nameDelta;
37
+
}elseif(currentName.startsWith(nameDelta)){
38
+
// Case where model streams in full name each time e.g. readFile -> readFile -> readFile
39
+
// do nothing
40
+
}else{
41
+
// Case where model streams in name in parts e.g. "read" -> "File"
0 commit comments