CategoryProgramming

Using OpenAI’s [free] Content Moderation API

By now, everyone knows about ChatGPT, GPT itself, and OpenAI. However, OpenAI is more than GPT: you can use their API to do image generation, speech to text, and text moderation assessments. This post is about their text moderation API, as I’ve recently discovered it’s free.

The idea is to use the moderation API to decide whether the rest of OpenAI’s models would accept the input text, but it can be used on its own as well. It might change in the future, but moderation API calls are not metered against your bill. 

Why would you want to … Read more

Azure DevOps – Post-job Installing Apple Certificate failing

For backwards compatibility purposes, I like to keep my continuous integration and deployment workers on the lowest version available. For macOS, this was 10.15 up until recently when Microsoft (rightfully) retired it and made macOS 11 the lowest version available.

Here’s the reason for this post: there’s a change in the exit code behavior of the security command, making any pipeline with multiple certificates fail.

It took me a while to figure out why and there wasn’t an existing post documenting this error. So, here we go. 😉

App & Installer Certificates

I mostly build desktop apps, which have … Read more

Using Azure DevOps Pipelines with Qt

This post goes into building an Azure DevOps Pipeline, which builds an Qt application. I recently moved to Azure, and found this combination not documented very well. I stepped in a lot of pitfalls and want to spare you the same.

First, some backstory; I’ve created this application, called WhatPulse (personal computer & productivity stats), which is built in C++ and the Qt framework. I’ve been using GitLab to host the code, and have been using their CI/CD pipelines to do automated compiling and testing of WhatPulse. The workers (the machines that execute the pipeline) were VMs, running locally … Read more

© 2024 Lostdomain

Theme by Anders NorénUp ↑