Search:AIGPTCODE

Add this endpoint to the spec: const response = await openai.createCompletion({ model: "text-davinci-003", prompt })

Description

Helps you create OpenAPI specifications from documentation, code examples, cURL commands, or just a description of how to use an API.

Prompt Starters

  1. Create a spec for this API: curl -G https://api.stripe.com/v1/customers -u "sk_test_4eC39HqLyjWDarjtT1zdp7dc:" -d limit=3
  2. Add this endpoint to the spec: const response = await openai.createCompletion({ model: "text-davinci-003", prompt })
  3. 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.
  4. Here's the documentation: https://platform.openai.com/docs/api-reference/embeddings/create what does the spec look like for creating embeddings?

Tools

browser


Comments