Skip to content

Commit f133392

Browse files
openai agents minor fixes
1 parent 9a3940e commit f133392

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

integrations/agents/openai-agents.mdx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@ Portkey turns your experimental OpenAI Agents into production-ready systems by p
2727
pip install -U openai-agents portkey-ai
2828
```
2929
</Step>
30-
31-
32-
33-
34-
<Step title="Generate API Key" icon="lock">
30+
<Step title="Generate API Key">
3531
Create a Portkey API key with optional budget/rate limits and attach your Config
3632
</Step>
3733

38-
<Step title="Connect to OpenAI Agents" icon="plug">
34+
<Step title="Connect to OpenAI Agents">
3935
There are 3 ways to integrate Portkey with OpenAI Agents:
4036

4137
1. Set a client that applies to all agents in your application
@@ -44,9 +40,6 @@ pip install -U openai-agents portkey-ai
4440

4541
See the [Integration Approaches](#integration-approaches) section for more details.
4642
</Step>
47-
48-
49-
5043
<Step title="Configure Portkey Client">
5144
For a simple setup, we'll use the global client approach:
5245

@@ -78,8 +71,6 @@ set_default_openai_api("chat_completions") # Responses API → Chat
7871
**What are Virtual Keys?** Virtual keys in Portkey securely store your LLM provider API keys (OpenAI, Anthropic, etc.) in an encrypted vault. They allow for easier key rotation and budget management. [Learn more about virtual keys here](/product/ai-gateway/virtual-keys).
7972
</Info>
8073
</Step>
81-
82-
8374
</Steps>
8475

8576
### Getting Started
@@ -699,8 +690,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
699690
"virtual_key": "YOUR_LLM_PROVIDER_VIRTUAL_KEY"
700691
}
701692

702-
703-
704693
# Configure OpenAI client with chosen provider
705694
portkey = AsyncOpenAI(
706695
base_url=PORTKEY_GATEWAY_URL,
@@ -722,7 +711,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
722711
"virtual_key": "YOUR_LLM_PROVIDER_VIRTUAL_KEY"
723712
}
724713

725-
726714
# Configure OpenAI client with chosen provider
727715
portkey = AsyncOpenAI(
728716
base_url=PORTKEY_GATEWAY_URL,

0 commit comments

Comments
 (0)