Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 844 Bytes

example-26-sql-translate.md

File metadata and controls

25 lines (16 loc) · 844 Bytes

Natural language to SQL

Convert natural language into SQL queries.

Example Usage

curl --location --request PUT 'https://api.openai.lawrencemcdaniel.com/examples/default-sql-translate' \
--header 'x-api-key: YOUR-API-GATEWAY-KEY' \
--header 'Content-Type: application/json' \
--data '{"Write a SQL query which computes the average total order value for all orders on 2023-04-01."}'

Example results

Official Documentation

OpenAI Playground