OpenAI Conversation Memory in Python
In the previous lesson, we learned how to structure messages and provide instructions to the OpenAI Responses API. But consider a user who says, “My favorite language is Python,” and…
In the previous lesson, we learned how to structure messages and provide instructions to the OpenAI Responses API. But consider a user who says, “My favorite language is Python,” and…
In the previous lesson, we learned to send a text prompt with client.responses.create() and read the returned response. A simple prompt works for many tasks, but applications also need a…
In the previous lesson, we learned how to initialize and configure the OpenAI Python client. But creating a client is only the starting point. An AI application becomes useful when…
In the previous tutorial, we installed the OpenAI Python SDK and sent our first API request. The example included one important line: client = OpenAI(). Although it looks simple, this…
In Blog 01, we explored what the OpenAI Python SDK does and where it fits in an application. Now it’s time to use it. By the end of this tutorial,…
You may already use AI chatbots to answer questions, summarize articles, or explain code. But how do you bring similar capabilities into your own Python application? Whether you’re building a…
A local AI coding setup lets you work with an AI model hosted on hardware you control. With OpenCode handling the development workflow and Ollama serving the model, you can…
I was using a qwen3-coder:30b local model to build an application when the attempt ran into errors. Before changing the model, I wanted to investigate one possible cause: was its…
If you already use Ollama to run AI models locally, you can connect those models to OpenCode and use them for agentic coding. The best part is that you do…
When people search online, they often do not use the exact words that appear in an article, product page, or document. A traditional keyword-based system can miss useful results simply…