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
@@ -699,8 +690,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
699
690
"virtual_key": "YOUR_LLM_PROVIDER_VIRTUAL_KEY"
700
691
}
701
692
702
-
703
-
704
693
# Configure OpenAI client with chosen provider
705
694
portkey = AsyncOpenAI(
706
695
base_url=PORTKEY_GATEWAY_URL,
@@ -722,7 +711,6 @@ Implement caching to make your OpenAI Agents agents more efficient and cost-effe
0 commit comments