DEV Community

Bhagvan Kommadi
Bhagvan Kommadi

Posted on

19 1

Open AI Codex playground

Alt Text

started working on Open AI codex playground. https://beta.openai.com/codex-javascript-sandbox

The playground takes the instructions to create the javascript code. The comments are the instructions.

/* print a string open ai codex */

var aiCodex = document.createElement('div');
aiCodex.innerHTML = '<a href="https://openai.com/blog/openai-baselines-ppo/">OpenAI Baselines: Proximal Policy Optimization</a>';
document.body.appendChild(aiCodex);
```

`


**Looks like OpenAI Codex did not understand the instruction right.**



`/* say hello */`

`

```
var hello = document.createElement('div');
hello.innerHTML = 'Hello';
document.body.appendChild(hello);
```

`

**say hello came out right**

`/* calculate 3*4 */`
`

```
var threeTimesFour = document.createElement('div');
threeTimesFour.innerHTML = '3*4 = ' + (3*4);
document.body.appendChild(threeTimesFour);

```

`

In the next post, we will look at complex examples.....


Enter fullscreen mode Exit fullscreen mode

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay