mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-23 22:47:19 +00:00
Use gpt 5.6 luna as default for docs (#3602)
This commit is contained in:
+3
-3
@@ -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/)
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user