File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { 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
66async 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 } ,
Original file line number Diff line number Diff line change 11import { 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
55async 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' ,
You can’t perform that action at this time.
0 commit comments