Ensuring Contextual Relevance in Chat Applications with OpenAI GPT and API Views