Use gpt 5.6 luna as default for docs (#3602)

This commit is contained in:
Reynaldi Chernando
2026-08-18 09:36:23 -07:00
committed by GitHub
parent ec3c33fea6
commit 401b6066b3
9 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -22,14 +22,14 @@ You can use AI models from various providers to perform tasks such as chat, text
<div class="example-content" data-section="ai-chat" style="display:block;">
#### Chat with GPT-5.4 nano
#### Chat with GPT-5.6 Luna
```html;ai-chatgpt
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
puter.ai.chat(`What is life?`, { model: "gpt-5.6-luna" }).then(puter.print);
</script>
</body>
</html>
@@ -208,7 +208,7 @@ These AI features are supported out of the box when using Puter.js:
You can see various Puter.js AI features in action from the following examples:
- AI Chat
- [Chat with GPT-5.4 nano](/playground/ai-chatgpt/)
- [Chat with GPT-5.6 Luna](/playground/ai-chatgpt/)
- [Image Analysis](/playground/ai-gpt-vision/)
- [Stream the response](/playground/ai-chat-stream/)
- [Function Calling](/playground/ai-function-calling/)
+3 -3
View File
@@ -387,14 +387,14 @@ for await (const part of resp) {
## Examples
<strong class="example-title">Ask GPT-5.4 nano a question</strong>
<strong class="example-title">Ask GPT-5.6 Luna a question</strong>
```html;ai-chatgpt
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
puter.ai.chat(`What is life?`, { model: "gpt-5.6-luna" }).then(puter.print);
</script>
</body>
</html>
@@ -410,7 +410,7 @@ for await (const part of resp) {
<script>
puter.ai
.chat(`What do you see?`, `https://assets.puter.site/doge.jpeg`, {
model: "gpt-5.4-nano",
model: "gpt-5.6-luna",
})
.then(puter.print);
</script>
+2 -2
View File
@@ -44,8 +44,8 @@ const examples = [
title: 'AI',
children: [
{
title: 'Chat with GPT-5.4 nano',
description: 'Chat with GPT-5.4 nano using Puter.js AI API. Run and experiment with this chatbot example directly in the playground.',
title: 'Chat with GPT-5.6 Luna',
description: 'Chat with GPT-5.6 Luna using Puter.js AI API. Run and experiment with this chatbot example directly in the playground.',
slug: 'ai-chatgpt',
source: '/playground/examples/ai-chatgpt.html',
},
+4 -4
View File
@@ -166,15 +166,15 @@ Puter.js is powered by [Puter](https://github.com/HeyPuter/puter), the open-sour
<div class="example-content" data-section="ai" style="display:block;">
#### Chat with GPT-5.4 nano
#### Chat with GPT-5.6 Luna
```html;intro-chatgpt
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
// Chat with GPT-5.4 nano
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
// Chat with GPT-5.6 Luna
puter.ai.chat(`What is life?`, { model: "gpt-5.6-luna" }).then(puter.print);
</script>
</body>
</html>
@@ -190,7 +190,7 @@ Puter.js is powered by [Puter](https://github.com/HeyPuter/puter), the open-sour
<script>
puter.ai
.chat(`What do you see?`, `https://assets.puter.site/doge.jpeg`, {
model: "gpt-5.4-nano",
model: "gpt-5.6-luna",
})
.then(puter.print);
</script>
@@ -5,9 +5,9 @@
// Loading ...
puter.print(`Loading...`);
// Chat with GPT-5.4 nano
// Chat with GPT-5.6 Luna
puter.ai.chat(`What is life?`, {
model: 'gpt-5.4-nano',
model: 'gpt-5.6-luna',
}).then(puter.print);
</script>
</body>
@@ -6,10 +6,10 @@
// Loading ...
puter.print(`Loading...`);
// Image analysis with GPT-5.4 nano
// Image analysis with GPT-5.6 Luna
puter.ai
.chat(`What do you see?`, `https://assets.puter.site/doge.jpeg`, {
model: "gpt-5.4-nano",
model: "gpt-5.6-luna",
})
.then(puter.print);
</script>
@@ -5,9 +5,9 @@
// Loading ...
puter.print(`Loading...`);
// Chat with GPT-5.4 nano
// Chat with GPT-5.6 Luna
puter.ai.chat(`What is life?`, {
model: 'gpt-5.4-nano',
model: 'gpt-5.6-luna',
}).then(puter.print);
</script>
</body>
@@ -6,10 +6,10 @@
// Loading ...
puter.print(`Loading...`);
// Image analysis with GPT-5.4 nano
// Image analysis with GPT-5.6 Luna
puter.ai
.chat(`What do you see?`, `https://assets.puter.site/doge.jpeg`, {
model: "gpt-5.4-nano",
model: "gpt-5.6-luna",
})
.then(puter.print);
</script>
+1 -1
View File
@@ -51,7 +51,7 @@ const puter = require("@heyputer/puter.js");
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
puter.ai.chat(`What is life?`, { model: "gpt-5.6-luna" }).then(puter.print);
</script>
</body>
</html>