Public
Edited
Feb 14, 2023
Paused
1 fork
Insert cell
Insert cell
Insert cell
import { openai, viewof openaiApiKey } from "@osteele/openai-wrapper"
Insert cell
Insert cell
viewof openaiApiKey
Insert cell
Insert cell
Insert cell
completion = openai.createCompletion({
model: "text-davinci-002",
prompt: "ObservableHQ is the greatest thing since",
echo: true,
max_tokens: 100
})
Insert cell
md`${completion.data.choices[0].text}`
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more