Public
Edited
Jan 26, 2024
Paused
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
messages = [
//{role: "system", content: "You are a helpful assistant"},
{role: "user", content: "What is the capital of France?"}
]
Insert cell
Insert cell
result0613 = (await fetch("https://api.openai.com/v1/chat/completions", {
method: "POST",
headers: {
'Authorization':`Bearer ${key}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: "gpt-3.5-turbo-0613",
temperature: 0.7,
messages,
functions,
})
})).json()
Insert cell
Insert cell
result1106 = (await fetch("https://api.openai.com/v1/chat/completions", {
method: "POST",
headers: {
'Authorization':`Bearer ${key}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: "gpt-3.5-turbo-1106",
temperature: 0.7,
messages,
tools,
})
})).json()
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