fix: pin fixed anthropic/fantasy forks for streaming token accounting (#24077)

This commit is contained in:
Michael Suchacz
2026-04-08 19:07:39 +02:00
committed by GitHub
parent 543c448b72
commit 590235138f
9 changed files with 237 additions and 23 deletions
+6 -1
View File
@@ -82,7 +82,12 @@ replace github.com/spf13/afero => github.com/aslilac/afero v0.0.0-20250403163713
// 3) ibetitsmike/fantasy#4 — skip ephemeral replay items when store=false
replace charm.land/fantasy => github.com/coder/fantasy v0.0.0-20260325145725-112927d9b6d8
replace github.com/charmbracelet/anthropic-sdk-go => github.com/kylecarbs/anthropic-sdk-go v0.0.0-20260223140439-63879b0b8dab
// Forked from coder/anthropic-sdk-go (fantasy branch) which adds:
// 1) All kylecarbs changes (fantasy branch merge).
// 2) Explicit usage-field merging in Accumulate using JSON presence checks
// (preserves input and cache tokens from message_start when message_delta
// omits them).
replace github.com/charmbracelet/anthropic-sdk-go => github.com/coder/anthropic-sdk-go v0.0.0-20260408163834-8345653c189a
require (
cdr.dev/slog/v3 v3.0.0