Make a spec to call the endpoint at https://api.openai.com/v1 with a POST request. The request should have a body with model and prompt keys - both are strings.
Description
Helps you create OpenAPI specifications from documentation, code examples, cURL commands, or just a description of how to use an API.
Prompt Starters
- Create a spec for this API: curl -G https://api.stripe.com/v1/customers -u "sk_test_4eC39HqLyjWDarjtT1zdp7dc:" -d limit=3
- Add this endpoint to the spec: const response = await openai.createCompletion({ model: "text-davinci-003", prompt })
- Make a spec to call the endpoint at https://api.openai.com/v1 with a POST request. The request should have a body with model and prompt keys - both are strings.
- Here's the documentation: https://platform.openai.com/docs/api-reference/embeddings/create what does the spec look like for creating embeddings?
Tools
browser