from portkey_ai import Portkey # Initialize the Portkey client portkey = Portkey( api_key="PORTKEY_API_KEY", ) # Update a specific virtual key updated_virtual_key = portkey.virtual_keys.update( slug='VIRTUAL_KEY_SLUG', name="openaiVKey", note="hello", rate_limits=[{"type": "requests", "unit": "rpm", "value": 696}] ) print(updated_virtual_key)
{}
Show child attributes
Credit Limit. Used for tracking usage
x > 1
Alert Threshold. Used for alerting when usage reaches more than this
Reset the usage periodically.
monthly
The response is of type object.
object
Was this page helpful?