The extent to which OpenAI API models have knowledge of current events depends on the specific model. Our models overview page contains a detailed overview of the knowledge cutoffs for each model.
You can augment the knowledge models have access to using a technique called retrieval augmented generation (RAG). With the Assistants API, this is built right in. With the Chat Completion API, you need to setup embeddings.