Commit Graph
6 Commits
Author SHA1 Message Date
jie65535andClaude Opus 4.8 bc61e99013 Give visual and reasoning models their own first-chunk timeouts
Vision and reasoning requests reused the chat model's 10s first-chunk
timeout, but both legitimately need longer before the first chunk:
vision must download the image server-side first, and reasoning has a
thinking warmup. Logs showed frequent TimeoutCancellationException at
10s/15s for imageRecognition and reasoning.

Add separate visualFirstChunkTimeout (120s) and reasoningFirstChunkTimeout
(90s) config, and raise each service's socket timeout to at least its
first-chunk budget so the socket layer doesn't sever the connection
before the first-chunk timeout can apply. Chat endpoints are unchanged.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-26 14:06:00 +08:00
jie65535andClaude Opus 4.8 826dc460df Add chat endpoint failover for resilience against unstable LLM APIs
Configure a list of fallback chat endpoints (chatFallbacks); each blank
field inherits the primary, so you can swap just the API key, just the
model, or the whole vendor. On LLM streaming failure the retry loop
advances to the next endpoint, and a failed endpoint enters a cooldown
(fallbackCooldownMinutes) so a dead primary is skipped instead of
wasting a timeout on every message.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-24 22:23:43 +08:00
jie65535 72892336bc Add first-chunk timeout 2026-05-22 14:16:00 +08:00
jie65535 e5d5445a1f Add ModelService with extra body support 2026-05-22 14:15:12 +08:00
jie65535 af17f1e698 Update version to 1.8.0
Add SendVoiceMessage tool
Move prompt to SystemPrompt.md file
Add tool calling message switch config
2025-08-31 15:57:16 +08:00
jie65535 3c4373e1ff Add Visual Agent 2025-07-11 16:50:59 +08:00