Skip to content

Commit 95e574a

Browse files
Update DevProxy.Plugins/Inspection/OpenAITelemetryPlugin.cs
Co-authored-by: Copilot <[email protected]>
1 parent a2acc04 commit 95e574a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DevProxy.Plugins/Inspection/OpenAITelemetryPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ private string GetBodyFromStreamingResponse(Response response)
10441044
if (chunk.StartsWith("data: ", StringComparison.OrdinalIgnoreCase))
10451045
{
10461046
// remove the "data: " prefix
1047-
bodyString = chunk[6..].Trim();
1047+
bodyString = chunk["data: ".Length..].Trim();
10481048
Logger.LogDebug("Last chunk starts with 'data: ', using the last chunk as the body: {BodyString}", bodyString);
10491049
}
10501050
else

0 commit comments

Comments
 (0)