Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/src/content/docs/guides/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ import quickstartExample from '../../../../../examples/docs/quickstart/index.ts?
export OPENAI_API_KEY=sk-...
```

Alternatively you can call `setDefaultOpenAIKey('<api key>')` to set the key
programmatically and use `setTracingExportApiKey('<api key>')` for tracing.
See [the config guide](/openai-agents-js/guides/config) for more details.

</Steps>

## Create your first agent
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/docs/ja/guides/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import quickstartExample from '../../../../../../examples/docs/quickstart/index.
export OPENAI_API_KEY=sk-...
```

代わりに `setDefaultOpenAIKey('<api key>')` を呼び出して API キーを設定することもできます。トレーシング用には `setTracingExportApiKey('<api key>')` を使用してください。詳しくは [設定ガイド](/openai-agents-js/ja/guides/config) をご覧ください。

</Steps>

## 最初のエージェントの作成
Expand Down