You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the [Integration Approaches](#integration-approaches) section for more details.
46
42
</Step>
47
-
48
-
49
-
50
43
<Steptitle="Configure Portkey Client">
51
44
For a simple setup, we'll use the global client approach:
52
45
@@ -78,8 +71,6 @@ set_default_openai_api("chat_completions") # Responses API → Chat
78
71
**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).
79
72
</Info>
80
73
</Step>
81
-
82
-
83
74
</Steps>
84
75
85
76
### Getting Started
@@ -723,8 +714,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
723
714
"virtual_key": "YOUR_LLM_PROVIDER_VIRTUAL_KEY"
724
715
}
725
716
726
-
727
-
728
717
# Configure OpenAI client with chosen provider
729
718
portkey = AsyncOpenAI(
730
719
base_url=PORTKEY_GATEWAY_URL,
@@ -746,7 +735,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
0 commit comments