import OpenAI from "openai"; const client = new OpenAI({ apiKey: "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" }); async function main() { const response = await client.responses.create({ model: "gpt-5", custom_gpt_id: "g-abc123xyz", input: "Hello 12:30 Recovery Pro! Can you summarize the 4 pillars?" }); console.log(response.output_text); } main();
document.getElementById('responseText').innerText = '...thinking...'; try { const res = await fetch('https://gpt-chat-backend-kcdy.onrender.com/chat', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ message: msg }) }); const data = await res.json(); document.getElementById('responseText').innerText = data.response || 'No response'; } catch (err) { console.error(err); document.getElementById('responseText').innerText = 'Oops—try again later.'; } });

Recovery Says:

Let’s work together

Highlight your services

What should we know about the services you provide? Better descriptions result in more sales.