File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,6 +251,24 @@ <h3>3. Render for any provider</h3>
251251});
252252
253253// request.body is shaped for OpenAI — send it with your own HTTP client
254+ // {
255+ // "model": "gpt-5.4",
256+ // "temperature": 0.7,
257+ // "messages": [
258+ // {
259+ // "role": "system",
260+ // "content": "You are a helpful support assistant working in Account settings page.\nUse tools to look up account details before answering."
261+ // },
262+ // {
263+ // "role": "user",
264+ // "content": "How do I reset my password?"
265+ // }
266+ // ],
267+ // "tools": [
268+ // { "type": "function", "function": { "name": "lookup_account" } },
269+ // { "type": "function", "function": { "name": "reset_password" } }
270+ // ]
271+ // }
254272const res = await fetch('https://api.openai.com/v1/chat/completions', {
255273 method: 'POST',
256274 headers: {
You can’t perform that action at this time.
0 commit comments