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…