Skip to content

Commit 45ff3da

Browse files
refactor
1 parent 7957c3d commit 45ff3da

3 files changed

Lines changed: 94 additions & 94 deletions

File tree

internal/server/web/proxy/anthropic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func getMessagesHandler(prod, private bool, client http.Client, e anthropicEstim
355355
model := c.GetString("model")
356356

357357
if !isStreaming && res.StatusCode == http.StatusOK {
358-
dur := time.Now().Sub(start)
358+
dur := time.Since(start)
359359
telemetry.Timing("bricksllm.proxy.get_messages_handler.latency", dur, nil, 1)
360360

361361
bytes, err := io.ReadAll(res.Body)

0 commit comments

Comments
 (0)