Skip to content

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

Open

Description

@sabetAI

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?

Activity

  1. changed the title [-]How to pass 'body' params to EventSourcePolyFill?[/-] [+]How to pass 'body' params to EventSourcePolyfill?[/+] on Aug 6, 2021
  2. Yaffle commented on Aug 6, 2021

    @Yaffle
    Owner

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

  3. sabetAI commented on Aug 7, 2021

    @sabetAI
    Author

    Sure, could you show me an example?

  4. Yaffle commented on Aug 7, 2021

    @Yaffle
    Owner
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions