import openai openai.Completion.create( engine="davinci", prompt="Make a list of astronomical observatories:" )
""" Table customers, columns = [CustomerId, FirstName, LastName, Company, Address, City, State, Country, PostalCode, Phone, Fax, Email, SupportRepId, TotalSpend] Create a MySQL query for all customers in Texas who have spent over five thousand dollars. """ query = "SELECT * FROM customers WHERE State = 'TX' AND TotalSpend > 5000"
""" Python 3 Get the current value of a Bitcoin in US dollars using the bitcoincharts api """ import requests import json def get_bitcoin_price(): url = 'http://api.bitcoincharts.com/v1/weighted_prices.json' response = requests.get(url) data = json.loads(response.text) return data['USD']['7d'] if __name__ == '__main__': print(get_bitcoin_price())
""" Extract all the html from the string and replace the tags with '' """ def extract_html(text): return re.sub('<[^<]+?>', '', text)
We help developers use best practices and provide tools, including:
Our API allows us to review applications before they go live, continually improve our safety tools, help developers scale over time, and better understand the effects of our technology.
Our API has been deployed in thousands of applications with tasks ranging from helping people learn new languages to solving complex classification problems.
AI pair programmer that helps you write code faster with less work. Using Codex, GitHub Copilot applies the context in your editor and synthesizes whole lines and even entire functions of code.
Helps freelancers automatically find tax-deductible expenses by using GPT-3 to interpret data from their bank statements into usable transaction information.
Helps businesses better and more quickly understand what customers are telling them by using language models, including GPT-3, to analyze customer feedback and generate summaries and insights.