Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/docs/src/AI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 nano
#### Chat with GPT-5.4 nano

```html;ai-chatgpt
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat(`What is life?`, { model: "gpt-5-nano" }).then(puter.print);
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
</script>
</body>
</html>
Expand Down Expand Up @@ -205,7 +205,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 nano](/playground/ai-chatgpt/)
- [Chat with GPT-5.4 nano](/playground/ai-chatgpt/)
- [Image Analysis](/playground/ai-gpt-vision/)
- [Stream the response](/playground/ai-chat-stream/)
- [Function Calling](/playground/ai-function-calling/)
Expand Down
6 changes: 3 additions & 3 deletions src/docs/src/AI/chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ You can find the implementation in our [prompt caching example](/playground/ai-c

## Examples

<strong class="example-title">Ask GPT-5 nano a question</strong>
<strong class="example-title">Ask GPT-5.4 nano 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-nano" }).then(puter.print);
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
</script>
</body>
</html>
Expand All @@ -208,7 +208,7 @@ You can find the implementation in our [prompt caching example](/playground/ai-c
<script>
puter.ai
.chat(`What do you see?`, `https://assets.puter.site/doge.jpeg`, {
model: "gpt-5-nano",
model: "gpt-5.4-nano",
})
.then(puter.print);
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: Find examples of serverless applications built with Puter.js
</a>
<div class="example-card-desc">
<h2 id="ai-chat"><a href="/playground/app-ai-chat/?autorun=1" target="_blank">AI Chat</a></h2>
<p>A chat app with AI using the Puter AI module. This app is powered by OpenAI GPT-5 nano.</p>
<p>A chat app with AI using the Puter AI module. This app is powered by OpenAI GPT-5.4 nano.</p>
</div>
</div>

Expand Down Expand Up @@ -62,7 +62,7 @@ description: Find examples of serverless applications built with Puter.js
</a>
<div class="example-card-desc">
<h2 id="text-summary"><a href="/playground/app-summarizer/?autorun=1" target="_blank">Text Summarizer</a></h2>
<p>Uses the Puter AI module to summarize a given long text. The model used in the background is GPT-5 nano.</p>
<p>Uses the Puter AI module to summarize a given long text. The model used in the background is GPT-5.4 nano.</p>
</div>
</div>

Expand Down
8 changes: 4 additions & 4 deletions src/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,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 nano
#### Chat with GPT-5.4 nano

```html;intro-chatgpt
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
// Chat with GPT-5 nano
puter.ai.chat(`What is life?`, { model: "gpt-5-nano" }).then(puter.print);
// Chat with GPT-5.4 nano
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
</script>
</body>
</html>
Expand All @@ -188,7 +188,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-nano",
model: "gpt-5.4-nano",
})
.then(puter.print);
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/src/playground/examples/ai-chatgpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Loading ...
puter.print(`Loading...`);

// Chat with GPT-5 nano
// Chat with GPT-5.4 nano
puter.ai.chat(`What is life?`, {
model: 'gpt-5-nano',
model: 'gpt-5.4-nano',
}).then(puter.print);
</script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/src/playground/examples/ai-gpt-vision.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Loading ...
puter.print(`Loading...`);

// Image analysis with GPT-5 nano
// Image analysis with GPT-5.4 nano
puter.ai
.chat(`What do you see?`, `https://assets.puter.site/doge.jpeg`, {
model: "gpt-5-nano",
model: "gpt-5.4-nano",
})
.then(puter.print);
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/src/playground/examples/intro-chatgpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Loading ...
puter.print(`Loading...`);

// Chat with GPT-5 nano
// Chat with GPT-5.4 nano
puter.ai.chat(`What is life?`, {
model: 'gpt-5-nano',
model: 'gpt-5.4-nano',
}).then(puter.print);
</script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/src/playground/examples/intro-gpt-vision.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Loading ...
puter.print(`Loading...`);

// Image analysis with GPT-5 nano
// Image analysis with GPT-5.4 nano
puter.ai
.chat(`What do you see?`, `https://assets.puter.site/doge.jpeg`, {
model: "gpt-5-nano",
model: "gpt-5.4-nano",
})
.then(puter.print);
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/src/supported-platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-nano" }).then(puter.print);
puter.ai.chat(`What is life?`, { model: "gpt-5.4-nano" }).then(puter.print);
</script>
</body>
</html>
Expand Down Expand Up @@ -96,7 +96,7 @@ import { init } from "@heyputer/puter.js/src/init.cjs";

const puter = init(process.env.puterAuthToken); // uses your auth token

// Chat with GPT-5 nano
// Chat with GPT-5.4 nano
puter.ai.chat("What color was Napoleon's white horse?").then((response) => {
puter.print(response);
});
Expand Down