File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,9 @@ const myAgent = new Agent({
6161 name: ' My Agent' ,
6262 instructions: " You're a helpful agent." ,
6363 modelSettings: {
64- providerData: {
65- reasoning: { effort: ' minimal' },
66- text: { verbosity: ' low' },
67- },
64+ reasoning: { effort: ' minimal' },
65+ text: { verbosity: ' low' },
66+ },
6867 // If OPENAI_DEFAULT_MODEL=gpt-5 is set, passing only modelSettings works.
6968 // It's also fine to pass a GPT-5 model name explicitly:
7069 // model: 'gpt-5',
Original file line number Diff line number Diff line change @@ -57,10 +57,9 @@ const myAgent = new Agent({
5757 name: ' My Agent' ,
5858 instructions: " You're a helpful agent." ,
5959 modelSettings: {
60- providerData: {
61- reasoning: { effort: ' minimal' },
62- text: { verbosity: ' low' },
63- },
60+ reasoning: { effort: ' minimal' },
61+ text: { verbosity: ' low' },
62+ },
6463 // If OPENAI_DEFAULT_MODEL=gpt-5 is set, passing only modelSettings works.
6564 // It's also fine to pass a GPT-5 model name explicitly:
6665 // model: 'gpt-5',
Original file line number Diff line number Diff line change @@ -57,10 +57,9 @@ const myAgent = new Agent({
5757 name: ' My Agent' ,
5858 instructions: " You're a helpful agent." ,
5959 modelSettings: {
60- providerData: {
61- reasoning: { effort: ' minimal' },
62- text: { verbosity: ' low' },
63- },
60+ reasoning: { effort: ' minimal' },
61+ text: { verbosity: ' low' },
62+ },
6463 // If OPENAI_DEFAULT_MODEL=gpt-5 is set, passing only modelSettings works.
6564 // It's also fine to pass a GPT-5 model name explicitly:
6665 // model: 'gpt-5',
You can’t perform that action at this time.
0 commit comments