Skip to content

Commit e42b767

Browse files
Merge pull request #328 from Portkey-AI/sdk-changelog
openai agents minor fixes + langchain vertex
2 parents 392027b + f799607 commit e42b767

File tree

2 files changed

+298
-217
lines changed

2 files changed

+298
-217
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
@@ -723,8 +714,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
723714
"virtual_key": "YOUR_LLM_PROVIDER_VIRTUAL_KEY"
724715
}
725716

726-
727-
728717
# Configure OpenAI client with chosen provider
729718
portkey = AsyncOpenAI(
730719
base_url=PORTKEY_GATEWAY_URL,
@@ -746,7 +735,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
746735
"virtual_key": "YOUR_LLM_PROVIDER_VIRTUAL_KEY"
747736
}
748737

749-
750738
# Configure OpenAI client with chosen provider
751739
portkey = AsyncOpenAI(
752740
base_url=PORTKEY_GATEWAY_URL,

0 commit comments

Comments
 (0)