Skip to content

Wrong Header Injection #384

Description

@rocktavious

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions