VOOZH about

URL: https://thenewstack.io/working-with-llm-apis-dev-shares-experience-building-ai-bots/

⇱ Working with LLM APIs: Dev Shares Experience Building AI Bots - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-06-13 09:02:39
Working with LLM APIs: Dev Shares Experience Building AI Bots
AI / API Management / Large Language Models

Working with LLM APIs: Dev Shares Experience Building AI Bots

Ania Kubów is host of Code with Ania Kubów on YouTube. She shares what developers need to know to get started building AI bots.
Jun 13th, 2024 9:02am by Loraine Lawson
👁 Featued image for: Working with LLM APIs: Dev Shares Experience Building AI Bots
Image via AI image service Imagine.art.

Software developer and trainer Ania Kubów’s course on developing with the large language model PaLM 2 is already out of date. Just five months after its release, Google deprecated the PaLM 2 language model in favor of Gemini. It’s frustrating, but it’s the nature of tech, she told The New Stack.

Demystifying artificial intelligence APIs is one of Kubów’s goals as a trainer. We asked Kubów what developers can expect when it comes to dealing with LLMs and their APIs. She said she’s noticed a trend toward AI APIs becoming easier to use.

“There is a kind of pattern emerging, especially with the APIs that I have used, that I’m starting to see more,” she said. “At the beginning, even just organizing the documentation, you would read some documentation, and it could seem quite chaotic.”

The accelerated pace of AI is mostly due to the crazy adoption curve of the technology.

Beware of AI Data Cutoff Dates

In the beginning, there was a lot of confusion about what AI actually was — and arguably, that confusion still surrounds the tech. Kubów sees AI as less of a threat to programmers and more of a robust tool.

“I always just like to think of it […] as a really good Google search, because that’s essentially what it is,” she said. “You’re getting some data that’s been trained. You’re feeding it [data] into a large language model, and that’s what you get back.”

Since AI relies on models trained with a cutoff date — for instance, OpenAI’s GPT-3.5 model is trained up until January 2023 — she often advises developers to add their own data or scrape web pages and store it to a database in order to add information to the model.

“I like to remind developers that, it’s really good Google search, [but] be aware of the cutoff date,” she said. “It’s quoting you from 2023, because that’s the latest knowledge it has. So that’s something to be aware of.”

That cutoff data can be significant depending on how developers are deploying the LLM. For instance, if you’re building a Formula One chatbot, and someone asks it who won the “latest race,” it might say Lewis Hamilton because its most recent data is from 2023, she said.

Getting Started with AI APIs

Kubów recommended developers start with a text-to-text model from OpenAI’s GPT-4 or Google’s Gemini.

“It’s one API, and then you can do various things with it,” she explained.

She doesn’t have a preference for any one LLM over another — both OpenAI and Google’s Gemini have their pros and cons, she added.

“Writing the correct prompt is also a consideration that you might want to look at before using up your credits or your money making all these calls.”
— Ania Kubów, software developer and trainer

Although the frontend has to deliver the streaming data ability to deliver chats, Kubów said that what’s significant with the LLM API is happening on the backend. Developers have to understand what they want the chatbot to do, understand the model they want to use, and the kind of output they desire, which will be shaped by the prompt developers create, she added.

“That’s the most important, doing it in a financially efficient way, because each call you make will cost something,” she said. “Writing the correct prompt is also a consideration that you might want to look at before using up your credits or your money making all these calls.”

Primarily, she’s seen developers working on chatbots. She has built a variety of bots, including a sales AI bot and a multiturn conversation chatbot. She’s also worked with image AI LLMs, building an image analyzer that allows users to send an image and have the AI put text to the image. Another generates images based on text using DALL-E with JavaScript.

“I built out a frontend for it to upload the image on the frontend, send it over to the backend, and then the backend would send it over to the AI,” she said.

Challenges Developers Commonly Face

In general, Kubów has found the APIs easy to use and self-explanatory. There are some models that can be more difficult to work with, however.

“Obviously, the more difficult ones, the ones sending images over or creating vector embeddings, when you might not understand what a vector embedding is and what is used for, can be bit trickier,” she said. “Of course, we haven’t seen vector embeddings out there before in the API world as much, or at all.”

The common problems she sees developers encounter are when they don’t get the expected results from a chatbot. Often, that relates to writing the prompt. Other issues can result from AI’s accelerated adoption curve — a programmer might have installed a package that’s already newer than the one in the documentation, for instance.

“It all comes from just the rapid change that we’re experiencing,” she said. “The results [can] be quite unpredictable if you’re just starting out.”

The key to success when starting out is to pay close attention to the documentation, she advised.

“As you know, a lot of my tutorials that I made just a month ago or two months ago are now outdated,” she said. “So checking the documentation as much as possible, to check for the latest updates, is definitely something that I would recommend.”

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: OpenAI.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.