Skip to content

Commit eaf13fc

Browse files
committed
fix file usage
1 parent d9ae286 commit eaf13fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/agents/examples/using-ai-models.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Modern [reasoning models](https://platform.openai.com/docs/guides/reasoning) or
2626

2727
Instead of buffering the entire response, or risking the client disconecting, you can stream the response back to the client by using the [WebSocket API](/agents/examples/websockets/).
2828

29-
<TypeScriptExample file="src/index.ts">
29+
<TypeScriptExample filename="src/index.ts">
3030

3131
```ts
3232
import { Agent } from "agents-sdk"
@@ -85,7 +85,7 @@ You can use [any of the models available in Workers AI](/workers-ai/models/) wit
8585

8686
Workers AI supports streaming responses out-of-the-box by setting `stream: true`, and we strongly recommend using them to avoid buffering and delaying responses, especially for larger models or reasoning models that require more time to generate a response.
8787

88-
<TypeScriptExample file="src/index.ts">
88+
<TypeScriptExample filename="src/index.ts">
8989

9090
```ts
9191
import { Agent } from "agents-sdk"
@@ -135,7 +135,7 @@ Model routing allows you to route requests to different AI models based on wheth
135135

136136
:::
137137

138-
<TypeScriptExample file="src/index.ts">
138+
<TypeScriptExample filename="src/index.ts">
139139

140140
```ts
141141
import { Agent } from "agents-sdk"
@@ -189,7 +189,7 @@ To use the AI SDK, install the `ai` package and use it within your Agent. The ex
189189
npm install ai @ai-sdk/openai
190190
```
191191

192-
<TypeScriptExample file="src/index.ts">
192+
<TypeScriptExample filename="src/index.ts">
193193

194194
```ts
195195
import { Agent } from "agents-sdk"
@@ -216,7 +216,7 @@ Agents can call models across any service, including those that support the Open
216216

217217
Agents can stream responses back over HTTP using Server Sent Events (SSE) from within an `onRequest` handler, or by using the native [WebSockets](/agents/examples/websockets/) API in your Agent to responses back to a client, which is especially useful for larger models that can take over 30+ seconds to reply.
218218

219-
<TypeScriptExample file="src/index.ts">
219+
<TypeScriptExample filename="src/index.ts">
220220

221221
```ts
222222
import { Agent } from "agents-sdk"

0 commit comments

Comments
 (0)