Natural Language AI In Your Next Project? It’s Easier Than You Think

Want your next project to trash talk? Dynamically rewrite boring log messages as sci-fi technobabble? Happily (or grudgingly) answer questions? Doing that sort of thing and more can be done with OpenAI’s GPT-3, a natural language prediction model with an API that is probably a lot easier to use than you might think.

In fact, if you have basic Python coding skills, or even just the ability to craft a curl statement, you have just about everything you need to add this ability to your next project. It’s not free in the long run, although initial use is free on signup, but for personal projects the costs will be very small.

Basic Concepts

OpenAI has an API that provides access to GPT-3, a machine learning model with the ability to perform just about any task that involves understanding or generating natural-sounding language.

OpenAI provides some excellent documentation as well as a web tool through which one can experiment interactively. First, however, one must create an account and receive an API key. After that is done, the doors are open.

Creating an account also gives one a number of free credits that can be used to experiment with ideas. Once the free trial is used up or expires, using the API will cost money. How much? Not a lot, frankly. Everything sent to (and received from) the API is broken into tokens, and pricing is from $0.0008 to $0.06 per thousand tokens. A thousand tokens is roughly 750 words, so small projects are really not a big financial commitment. My free trial came with 18 USD of credits, of which I have so far barely managed to spend 5%.

Let’s take a closer look at how it works, and what can be done with it!

Continue reading “Natural Language AI In Your Next Project? It’s Easier Than You Think”

Sunrise Keyboard Looks The Part

If you’ve been to a bar sometime since the 1930s, you’ve probably spied someone drinking a Tequila Sunrise. It’s a drink that mimics the beautiful colors of the dawn. In much the same way, so does this Sunriser keyboard build from [crashl1445].

Built for a high-school engineering project, the build looks resplendent with its yellow case, paired with yellow, orange and pink keycaps to produce the wonderful sunrise aesthetic. The build relies on an Elite-C v4 microcontroller, an off-the-shelf device specifically designed for building custom keyboards. As you might guess from the name, it features a USB-C port, serving as a modernized alternative to the Arduino Pro Micro for custom keyboard builders. KTT Rose switches are used as per [crashl1445’s] own preference, and there’s even a rotary encoder which acts as a volume knob, installed right by the arrow keys. The case is printed in several parts on a Prusa Mk3+, as the keyboard wouldn’t fit entirely on the build plate as a single piece.

The best thing about building your own keyboard is that you can design it entirely to suit your own preferences and aesthetic; we think [crashl1445] did a great job in this regard. If you’re cooking up your own sweet keyboard build, don’t hesitate to let us know!

Color(ing) Computer Needs No Batteries

While Radio Shack did have the Color Computer, we don’t think they had this in mind. [Pepepépepe] has some coloring book pages and simple rules that let you simulate logic circuits using a crayon. The downloadable ‘zine has hand-written instructions and several examples.

Keep in mind, this is a computer in the same way the old logic kits in the 1960s were computers. They are really demonstrations of digital logic circuits. To work the “computers”, you pick two colors, one for a square and the other for a circle. You color pathways until you reach a “nory.” The nory, which looks suspiciously like a slingshot with eyes, has a special rule. If both branches of the nory have your circle color on them, the output of the nory will be the square color. Otherwise, the color coming out is the circle color.

Continue reading “Color(ing) Computer Needs No Batteries”