Skip to content

Commit

Permalink
Merge branch 'creating-an-openai-chatbot'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovid committed Jul 6, 2024
2 parents 40b5f98 + 327771f commit e7859b6
Show file tree
Hide file tree
Showing 32 changed files with 1,454 additions and 16 deletions.
9 changes: 8 additions & 1 deletion article.rss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@
<description>Software and business articles by Ovid</description>
<language>en-us</language>
<copyright>Copyright 2024, Curtis &#x22;Ovid&#x22; Poe</copyright>
<pubDate>Sat, 29 Jun 2024 21:31:33 +0000</pubDate>
<pubDate>Sat, 06 Jul 2024 11:42:10 +0000</pubDate>
<managingEditor>curtis.poe@gmail.com (Curtis &#x22;Ovid&#x22; Poe)</managingEditor>
<atom:link href="https://curtispoe.org/article.rss" rel="self" type="application/rss+xml"/>

<item>
<title>An OpenAI Chatbot in Perl</title>
<link>https://curtispoe.org/articles/an-openai-chatbot-in-perl.html</link>
<description>The OpenAPI::Client::OpenAI module is very low-level. We show how to write a wrapper around it for a clean interface with production code.</description>
<guid isPermaLink="false">article/an-openai-chatbot-in-perl</guid>
<pubDate>Sat, 06 Jul 2024 10:22:26 +0000</pubDate>
</item>
<item>
<title>Claude Sonnet 3.5 beats ChatGPT 4.0</title>
<link>https://curtispoe.org/articles/claude-sonnet-35-beats-chatgpt-40.html</link>
Expand Down
2 changes: 1 addition & 1 deletion articles.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 1</h1>


<ul id="articles">
<li><a href="/articles/an-openai-chatbot-in-perl.html">An OpenAI Chatbot in Perl</a></li>
<li><a href="/articles/claude-sonnet-35-beats-chatgpt-40.html">Claude Sonnet 3.5 beats ChatGPT 4.0</a></li>
<li><a href="/articles/will-you-lose-your-job-to-ai.html">Will You Lose Your Job to AI?</a></li>
<li><a href="/articles/building-an-iphone-app-with-chatgpt.html">Building an iPhone App with ChatGPT</a></li>
Expand All @@ -236,7 +237,6 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 1</h1>
<li><a href="/articles/corinna-in-the-perl-core.html">Corinna in the Perl Core</a></li>
<li><a href="/articles/tracking-elon-musks-plane-with-perl.html">Tracking Elon Musk's Plane with Perl</a></li>
<li><a href="/articles/using-github-copilot-with-vim.html">Using Github Copilot with Vim</a></li>
<li><a href="/articles/all-around-the-world-celebrating-ten-years.html">All Around the World: Celebrating Ten Years</a></li>
</ul>
<nav class="pagination">
<span class="inactive">&laquo;</span>
Expand Down
872 changes: 872 additions & 0 deletions articles/an-openai-chatbot-in-perl.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions articles/claude-sonnet-35-beats-chatgpt-40.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h1><a name="-title-no-title-found-"></a>Claude Sonnet 3.5 beats ChatGPT 4.0</h1

<a href="/articles/will-you-lose-your-job-to-ai.html" class="prevPost">&laquo; Will You Lose Your Job to AI?</a>

<a href="/#" class="nextPost"></a>
<a href="/articles/an-openai-chatbot-in-perl.html" class="nextPost">An OpenAI Chatbot in Perl &raquo;</a>
</div>


Expand Down Expand Up @@ -326,7 +326,7 @@ <h1><a name="-title-no-title-found-"></a>Claude Sonnet 3.5 beats ChatGPT 4.0</h1

<a href="/articles/will-you-lose-your-job-to-ai.html" class="prevPost">&laquo; Will You Lose Your Job to AI?</a>

<a href="/#" class="nextPost"></a>
<a href="/articles/an-openai-chatbot-in-perl.html" class="nextPost">An OpenAI Chatbot in Perl &raquo;</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion articles_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 2</h1>


<ul id="articles">
<li><a href="/articles/all-around-the-world-celebrating-ten-years.html">All Around the World: Celebrating Ten Years</a></li>
<li><a href="/articles/the-future-of-perl.html">The Future of Perl</a></li>
<li><a href="/articles/converting-object-oriented-code-to-corinna.html">Converting Object-Oriented Code to Corinna</a></li>
<li><a href="/articles/feature-switch-best-practices.html">Feature Switch Best Practices</a></li>
Expand All @@ -236,7 +237,6 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 2</h1>
<li><a href="/articles/introducing-moosexextended-for-perl.html">Introducing MooseX::Extended for Perl</a></li>
<li><a href="/articles/common-problems-in-object-oriented-code.html">Common Problems in Object-Oriented Code</a></li>
<li><a href="/articles/why-is-object-oriented-programming-bad.html">Why is Object-Oriented Programming Bad?</a></li>
<li><a href="/articles/are-microservices-the-next-phase-of-object-oriented-programming.html">Are Microservices the Next Phase of Object-Oriented Programming?</a></li>
</ul>
<nav class="pagination">
<a href="/articles.html">&laquo;</a>
Expand Down
2 changes: 1 addition & 1 deletion articles_3.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 3</h1>


<ul id="articles">
<li><a href="/articles/are-microservices-the-next-phase-of-object-oriented-programming.html">Are Microservices the Next Phase of Object-Oriented Programming?</a></li>
<li><a href="/articles/constructive-versus-classical-logic-in-perl.html">Constructive Versus Classical Logic in Perl</a></li>
<li><a href="/articles/why-is-perl-not-putting-moose-in-the-core.html">Why is Perl not putting Moose in the core?</a></li>
<li><a href="/articles/language-design-consistency.html">Language Design Consistency</a></li>
Expand All @@ -236,7 +237,6 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 3</h1>
<li><a href="/articles/easy-git-workflow.html">Easy Git Workflow</a></li>
<li><a href="/articles/making-complex-software-simple.html">Making Complex Software Simple</a></li>
<li><a href="/articles/work-from-home-effectively.html">Work From Home Effectively</a></li>
<li><a href="/articles/database-design-standards.html">Database Design Standards</a></li>
</ul>
<nav class="pagination">
<a href="/articles_2.html">&laquo;</a>
Expand Down
2 changes: 1 addition & 1 deletion articles_4.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 4</h1>


<ul id="articles">
<li><a href="/articles/database-design-standards.html">Database Design Standards</a></li>
<li><a href="/articles/automated-software-standards.html">Automated Software Standards</a></li>
<li><a href="/articles/project-500.html">Case Study: 500 TPS</a></li>
<li><a href="/articles/moving-from-oracle-to-postgresql.html">Moving from Oracle to PostgreSQL</a></li>
Expand All @@ -236,7 +237,6 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 4</h1>
<li><a href="/articles/alan-kay-and-oo-programming.html">Alan Kay and OO Programming</a></li>
<li><a href="/articles/the-worst-job-offer.html">The Worst Job Offer</a></li>
<li><a href="/articles/the-tyranny-of-budgets.html">Software Projects as Used Cars</a></li>
<li><a href="/articles/how-to-defeat-facebook.html">How to Defeat Facebook</a></li>
</ul>
<nav class="pagination">
<a href="/articles_3.html">&laquo;</a>
Expand Down
2 changes: 1 addition & 1 deletion articles_5.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 5</h1>


<ul id="articles">
<li><a href="/articles/how-to-defeat-facebook.html">How to Defeat Facebook</a></li>
<li><a href="/articles/fixing-mvc-in-web-applications.html">Fixing MVC in Web Applications</a></li>
<li><a href="/articles/avoid-common-software-project-mistakes.html">Avoid Common Software Project Mistakes</a></li>
<li><a href="/articles/estimating-development-costs-is-almost-useless.html">Estimating Development Costs is Almost Useless</a></li>
Expand All @@ -236,7 +237,6 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 5</h1>
<li><a href="/articles/zen-of-test-suites.html">The Zen of test suites</a></li>
<li><a href="/articles/how-databases-can-hurt-your-startup.html">How the database can hurt your startup</a></li>
<li><a href="/articles/a-simple-way-to-fix-legacy-code.html">A simple way to fix legacy code</a></li>
<li><a href="/articles/when-to-choose-agile.html">When to choose agile</a></li>
</ul>
<nav class="pagination">
<a href="/articles_4.html">&laquo;</a>
Expand Down
1 change: 1 addition & 0 deletions articles_6.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ <h1><a name="-title-no-title-found-"></a>Articles by Ovid, page 6</h1>


<ul id="articles">
<li><a href="/articles/when-to-choose-agile.html">When to choose agile</a></li>
<li><a href="/articles/going-agile-can-hurt-your-company.html">When going agile can hurt your company</a></li>
</ul>
<nav class="pagination">
Expand Down
3 changes: 2 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ requires 'MetaCPAN::Client' => 2.030000;
requires 'Module::ScanDeps' => 1.31;
requires 'Mojolicious' => 9.31;
requires 'Moose' => 2.2201;
requires 'Readonly' => 0;
requires 'String::Util' => 1.32;
requires 'Template::Toolkit' => 3.101;
requires 'Template::Toolkit' => 3.100;
requires 'Test2::Suite' => 0.000145;
requires 'Test::Most' => 0.38;
requires 'Text::Markdown' => 1.000031;
Expand Down
Binary file modified db/ovid.db
Binary file not shown.
Binary file modified db/sqitch.db
Binary file not shown.
2 changes: 1 addition & 1 deletion fixtures/index.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion root/articles.tt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[% INCLUDE include/header.tt %]

<ul id="articles">
<li><a href="/articles/an-openai-chatbot-in-perl.html">An OpenAI Chatbot in Perl</a></li>
<li><a href="/articles/claude-sonnet-35-beats-chatgpt-40.html">Claude Sonnet 3.5 beats ChatGPT 4.0</a></li>
<li><a href="/articles/will-you-lose-your-job-to-ai.html">Will You Lose Your Job to AI?</a></li>
<li><a href="/articles/building-an-iphone-app-with-chatgpt.html">Building an iPhone App with ChatGPT</a></li>
Expand All @@ -15,7 +16,6 @@
<li><a href="/articles/corinna-in-the-perl-core.html">Corinna in the Perl Core</a></li>
<li><a href="/articles/tracking-elon-musks-plane-with-perl.html">Tracking Elon Musk's Plane with Perl</a></li>
<li><a href="/articles/using-github-copilot-with-vim.html">Using Github Copilot with Vim</a></li>
<li><a href="/articles/all-around-the-world-celebrating-ten-years.html">All Around the World: Celebrating Ten Years</a></li>
</ul>
<nav class="pagination">
<span class="inactive">&laquo;</span>
Expand Down
Loading

0 comments on commit e7859b6

Please sign in to comment.