• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
 
Filters
3 results tagged openapi

Generating Content with ChatGPT - Perl Hacks

QRCode

Back in January, I wrote a blog post about adding JSON-LD to your web pages to make it easier for Google to understand what they were about. The example I used was my ReadABooker site, which encourages people to read more Booker Prize shortlisted novels (and to do so by buying them using my Amazon

https://perlhacks.com/2025/06/generating-content-with-chatgpt/
June 20, 2025 at 2:49:13 PM EDT *
perl openapi chatgpt llm
FILLER

Collaborators needed for bring full OpenAI support to Perl

QRCode

Thus, that module was deprecated in favor of Nelson's OpenAPI::Client::OpenAI module. Throw the 13K+ lines OpenAPI spec for OpenAI at it and it just works. Further, the module is pretty much a single Perl class rather than a bunch of hand-crafted code.

CPAN authors know it can be hard to keep modules up-to-date (mea culpa, mea culpa!) and this module is no exception. I need this module so I offered to collaborate and created a PR to update it to version 2.0.0 of the OpenAI spec. It now passes all the tests (for those wondering, you need an OpenAI key and it costs $0.04 USD to run the test suite).

In trying to build a Whisper pipeline for that, I found that I couldn't. There was a PR for Whisper support for the older module, but for the newer one, I can't figure out how to get it to issue a request with multipart/form-data support. I've noted the issue in the PR.

https://www.reddit.com/r/perl/comments/1cwa4zd/collaborators_needed_for_bring_full_openai/?rdt=43096
May 20, 2024 at 2:34:47 PM EDT *
llm openapi perl
FILLER

GitHub - zaghaghi/openapi-tui: Terminal UI to list, browse and run APIs defined with openapi spec.

QRCode

Terminal UI to list, browse and run APIs defined with openapi spec. - zaghaghi/openapi-tui

https://github.com/zaghaghi/openapi-tui
March 12, 2024 at 2:24:01 PM EDT *
openapi api
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community