File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ import quickstartExample from '../../../../../examples/docs/quickstart/index.ts?
31
31
export OPENAI_API_KEY=sk-...
32
32
```
33
33
34
+ Alternatively you can call ` setDefaultOpenAIKey('<api key>') ` to set the key
35
+ programmatically and use ` setTracingExportApiKey('<api key>') ` for tracing.
36
+ See [ the config guide] ( /openai-agents-js/guides/config ) for more details.
37
+
34
38
</Steps >
35
39
36
40
## Create your first agent
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ import quickstartExample from '../../../../../../examples/docs/quickstart/index.
31
31
export OPENAI_API_KEY=sk-...
32
32
```
33
33
34
+ 代わりに ` setDefaultOpenAIKey('<api key>') ` を呼び出して API キーを設定することもできます。トレーシング用には ` setTracingExportApiKey('<api key>') ` を使用してください。詳しくは [ 設定ガイド] ( /openai-agents-js/ja/guides/config ) をご覧ください。
35
+
34
36
</Steps >
35
37
36
38
## 最初のエージェントの作成
You can’t perform that action at this time.
0 commit comments