Revert "cmd: claude launch improvements (#14064)" (#14071)

This reverts commit ee25219edd.
This commit is contained in:
Jeffrey Morgan
2026-02-04 09:10:37 -08:00
committed by GitHub
parent df70249520
commit cefabd79a8
15 changed files with 81 additions and 1609 deletions

View File

@@ -131,15 +131,12 @@ func AnthropicMessagesMiddleware() gin.HandlerFunc {
messageID := anthropic.GenerateMessageID()
// Estimate input tokens for streaming (actual count not available until generation completes)
estimatedTokens := anthropic.EstimateInputTokens(req)
w := &AnthropicWriter{
BaseWriter: BaseWriter{ResponseWriter: c.Writer},
stream: req.Stream,
id: messageID,
model: req.Model,
converter: anthropic.NewStreamConverter(messageID, req.Model, estimatedTokens),
converter: anthropic.NewStreamConverter(messageID, req.Model),
}
if req.Stream {