Just have a variable that *can* be an OpenAI API client, but by default is null. Then, whenever you

Just have a variable that can be an OpenAI API client, but by default is null. Then, whenever you need it, use the variable if present, otherwise initialize it first
Was this page helpful?