Skip to content

Commit dfb2d08

Browse files
committed
URL to url
1 parent 725b609 commit dfb2d08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/basic/remote-image.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Agent, run } from '@openai/agents';
22

3-
const URL =
3+
const url =
44
'https://upload.wikimedia.org/wikipedia/commons/0/0c/GoldenGateBridge-001.jpg';
55

66
async function main() {
@@ -15,7 +15,7 @@ async function main() {
1515
content: [
1616
{
1717
type: 'input_image',
18-
image: URL,
18+
image: url,
1919
providerData: {
2020
detail: 'auto',
2121
},

examples/basic/remote-pdf.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Agent, run } from '@openai/agents';
22

3-
const URL = 'https://www.berkshirehathaway.com/letters/2024ltr.pdf';
3+
const url = 'https://www.berkshirehathaway.com/letters/2024ltr.pdf';
44

55
async function main() {
66
const agent = new Agent({
@@ -11,7 +11,7 @@ async function main() {
1111
const result = await run(agent, [
1212
{
1313
role: 'user',
14-
content: [{ type: 'input_file', file: URL }],
14+
content: [{ type: 'input_file', file: url }],
1515
},
1616
{
1717
role: 'user',

0 commit comments

Comments
 (0)