Skip to content

Commit 8ca2225

Browse files
WEBSITE: Improved quickstart example code to show the converted body for the example
1 parent a4ec40f commit 8ca2225

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

website/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
// }
254272
const res = await fetch('https://api.openai.com/v1/chat/completions', {
255273
method: 'POST',
256274
headers: {

0 commit comments

Comments
 (0)