Library

Openai.cr 0.3.0 Release

June 23, 2023
OpenAI, Function Calls, Library, Crystal Lang

Functions! We love when our jobs are made easier. Recently OpenAI announced the support for functions on their blog. Functions allow you to specify the structure of your output in a JSON compatible format. In the past, you’d have to wrangle the output by asking the GPT API to return a computer readable format like YAML or JSON, and specify the fields in natural language. The output would be unreliable. Most of the time I would resort to asking for YAML and I’d have to be very specific about the kinds of fields I would get back so I would get consistent results. ...

OpenAI Crystal Library

June 21, 2023
OpenAI, Crystal Lang, Programming, Autonomous Systems, API, guppi, Code Assistant, Library, AI

Hello everyone! I’ve been developing a new library for OpenAI in Crystal Lang. My fascination with autonomous systems led me to create a semi-autonomous assistant to aid my coding process. There was an existing OpenAI library in Crystal, but it didn’t quite meet my needs and lacked some key features. The most significant addition I’ve made is streaming, which is necessary for streaming code output to the user that guppi is writing. ...