mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
fix: increase SSE scanner max line size from 40MB to 500MB
4K image base64 data can exceed 40MB limit, causing "bufio.Scanner: token too long" errors. Scanner is adaptive (starts at 64KB, grows as needed), so increasing the cap has no impact on normal responses.
This commit is contained in:
1 parent
5179920166
commit
b2bc47abd7
2 files changed
+2
-2
No files matched your search
@@ -1 +1 @@
|
|||||||
0.1.93.25
|
0.1.93.26
|
||||||
@@ -42,7 +42,7 @@ const (
|
|||||||
claudeAPICountTokensURL = "https://api.anthropic.com/v1/messages/count_tokens?beta=true"
|
claudeAPICountTokensURL = "https://api.anthropic.com/v1/messages/count_tokens?beta=true"
|
||||||
stickySessionTTL = time.Hour // 粘性会话TTL
|
stickySessionTTL = time.Hour // 粘性会话TTL
|
||||||
ClientAffinityTTL = 24 * time.Hour // 客户端亲和TTL
|
ClientAffinityTTL = 24 * time.Hour // 客户端亲和TTL
|
||||||
defaultMaxLineSize = 40 * 1024 * 1024
|
defaultMaxLineSize = 500 * 1024 * 1024
|
||||||
// Canonical Claude Code banner. Keep it EXACT (no trailing whitespace/newlines)
|
// Canonical Claude Code banner. Keep it EXACT (no trailing whitespace/newlines)
|
||||||
// to match real Claude CLI traffic as closely as possible. When we need a visual
|
// to match real Claude CLI traffic as closely as possible. When we need a visual
|
||||||
// separator between system blocks, we add "\n\n" at concatenation time.
|
// separator between system blocks, we add "\n\n" at concatenation time.
|
||||||
|
|||||||
Reference in new issue
Block a user