This website requires JavaScript.
Explore
Help
Register
Sign In
antior
/
magpie
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
7,089
Commits
1
Branch
0
Tags
ac4af582301a4e8a29245dbba767eba31334ddf9
Commit Graph
2 Commits
Include renames
Author
SHA1
Message
Date
yetone
9abfbff607
cleanup: gofmt the 15 Go files main had unformatted — whitespace, comment alignment and three one-line funcs gofmt opens up; nothing else. go build and vet -tags nogui pass.
2026-10-06 07:43:47 +08:00
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