Build Storefront AI Agent using Open AI

I am building a Storefront AI agent chatbot in Shopify using a theme block extension.
I am following this documentation:

However, the guide focuses on using Claude AI. I want to use OpenAI instead.
Can you tell me what code I need to change to make it work with OpenAI?

Can anyone help me?

Hey @amit_kumar1

You can find instructions to swap out the LLM in the documenation here