from portkey_ai import Portkey
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Create a new configuration
config = portkey.configs.create(
name="ConfigName_0909",
config={
"retry": {
"attempts": 3
},
"cache": {
"mode": "simple"
}
},
workspace_id="WORKSPACE_ID",
)
print(config)