Skip to content
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

How to pass 'body' params to EventSourcePolyfill? #175

Open
sabetAI opened this issue Aug 6, 2021 · 3 comments
Open

How to pass 'body' params to EventSourcePolyfill? #175

sabetAI opened this issue Aug 6, 2021 · 3 comments

Comments

@sabetAI
Copy link

sabetAI commented Aug 6, 2021

If I have a curl request like the following:

curl -G https://api.openai.com/v1/engines/davinci/completions/browser_stream \
  --data-urlencode prompt='Once upon a time' \
  --data-urlencode max_tokens=3 \
  -H 'Authorization: Bearer YOUR_API_KEY'

How do I pass --data-urlencode prompt='Once upon a time' to my to EventSourcePolyfill request?

@sabetAI sabetAI changed the title How to pass 'body' params to EventSourcePolyFill? How to pass 'body' params to EventSourcePolyfill? Aug 6, 2021
@Yaffle
Copy link
Owner

Yaffle commented Aug 6, 2021

there is no option to send POST request or add a body to a request, could you add a query parameter instead?

@sabetAI
Copy link
Author

sabetAI commented Aug 7, 2021

Sure, could you show me an example?

@Yaffle
Copy link
Owner

Yaffle commented Aug 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants