Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Do not retry non-GET requests by default #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ichernev wants to merge 1 commit into Azure:main
base: main
Choose a base branch
Loading
from deepinfra:fix-post

Conversation

Copy link

@ichernev ichernev commented Aug 18, 2023

The main reason I started using this library is to do SSE events that require POST. As you can imagine, those have state and shouldn't be reset by the client without a good reason.

The default behavior (if no onerror and openWhenHidden) are specified is to reset on close and on tab switch... So this PR modifies the default behavior for non GET requests, to get some sane behavior out-of-the-box.

mogita reacted with thumbs up emoji dudo, Blu3cr0ss, Cyerra, mogita, and kayoch1n reacted with rocket emoji
Copy link
Author

@microsoft-github-policy-service agree company="DeepInfra"

Copy link

this really bit me in the butt and got fetch-event-source spending a lot of LLM tokens as it was repeating POST requests all the time, and it would solve the pain for people on #36 for the most part

if the maintainers could merge this, it would be great

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /