Description
in providers/openai/error.go, toHeaderMap writes the lowercased header names into the input map instead of the output. As a result retry-after / retry-after-ms are honored only at random, and otherwise it waits the default 5s, 10s, 20s. That affects real rate-limit handling.
https://github.com/charmbracelet/fantasy/blob/main/providers/openai/error.go#L119C2-L128C2
Version
master
Environment
No response
Description
in providers/openai/error.go, toHeaderMap writes the lowercased header names into the input map instead of the output. As a result retry-after / retry-after-ms are honored only at random, and otherwise it waits the default 5s, 10s, 20s. That affects real rate-limit handling.
https://github.com/charmbracelet/fantasy/blob/main/providers/openai/error.go#L119C2-L128C2
Version
master
Environment
No response