openai.responses.create is failing in v0 environment

I have the following code that is failing in v0 environment (development), but not when running locally or in production.

    const response = await openai.responses.create({
      model: "gpt-4o-mini",
      instructions: "You are a professional youth soccer coach. Always respond with valid JSON only, no markdown formatting.",
      input: prompt,
      temperature: 0.7,
      max_output_tokens: 4000,
    })

I”m getting the following exception:

Cannot read properties of undefined (reading 'toLowerCase') 
trace: TypeError: Cannot read properties of undefined (reading 'toLowerCase') at re (https://esm.v0.app/openai@6.15.0/es2022/client.mjs:3:3420) at Se (https://esm.v0.app/openai@6.15.0/es2022/client.mjs:3:1542) at ie (https://esm.v0.app/openai@6.15.0/es2022/client.mjs:3:3637) at u.buildHeaders (https://esm.v0.app/openai@6.15.0/es2022/client.mjs:12:7135) at u.buildRequest (https://esm.v0.app/openai@6.15.0/es2022/client.mjs:12:6430) at u.makeRequest (https://esm.v0.app/openai@6.15.0/es2022/client.mjs:12:2536) at async generateTrainingPlan (blob:https://preview-manual-goal-creation-kzmqzwrml7olqp93rk8x.vusercontent.net/3fe70a0f-5048-48cb-83f5-1f612338aa7a:224:26) at async ep (https://preview-manual-goal-creation-kzmqzwrml7olqp93rk8x.vusercontent.net/_next/static/chunks/1815190e90fbb6af.js?dpl=dpl_DD5JuyxDHetGbaxutXH61NSRRrNe:12:51757) at async eh (https://preview-manual-goal-creation-kzmqzwrml7olqp93rk8x.vusercontent.net/_next/static/chunks/1815190e90fbb6af.js?dpl=dpl_DD5JuyxDHetGbaxutXH61NSRRrNe:12:51535) at async t (https://preview-manual-goal-creation-kzmqzwrml7olqp93rk8x.vusercontent.net/_next/static/chunks/1815190e90fbb6af.js?dpl=dpl_DD5JuyxDHetGbaxutXH61NSRRrNe:12:46255)

It seems to be an issue with the v0 environment.

Any suggestions on how to resolve this?

Just catching up after the holidays, are you still seeing this?

Can you check to see if your app is using openai 6.15.0 in its package.json?