The extent to which OpenAI API models know about current events depends on the specific model. It is usually not real-time; the knowledge base is typically updated periodically.
There are two solutions below
Use a technique called retrieval-augmented generation (RAG) to enhance the knowledge the model can access.
Use the Assistants API; this feature is built in. With the Chat Completion API, you need to set up a embedded knowledge base.