Logo
Explore Help
Register Sign In
antior/magpie
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
1,126 Commits 1 Branch 0 Tags
5df609e525c10d0c02cc8acaba475fe49a0220ca
Commit Graph
1 Commits
Author SHA1 Message Date
yetone 409fd21fe7 gateway: a stream that says it's rate limited before saying anything is let go at once, and the next account asked (Discord: after the second account's 429, Hermes kept waiting, 回答中 with nothing shown and no error, until the preferred account was changed) — a key or account that answered 200 and then a 429 as its stream's error event, before any content, was failed by the hold writer, but magpie read on until the vendor hung up; one that kept the connection open kept the agent waiting with nothing sent, not even headers, and the next account was asked only then, or never within the agent's timeout. The try's request to the vendor is now ended as soon as its stream's error comes before any content, so the next key or account answers at once, and with none left the agent gets the error at once. A refusal still reads on, for what it cost. A 429 status with a Retry-After of up to 8s, every account limited, still waits it out twice for the last one as before; one without, or longer, is the agent's at once. TestStreamErrorKeptOpenFailsOverAtOnce (Chat, Responses, Anthropic; one and both limited) fails without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass. 2026-10-02 05:22:14 +08:00
Powered by Gitea Version: 1.27.3 Page: 73ms Template: 1ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API