🎉 Portkey raises Series A - $15M to build AI that never breaks  Read announcement →
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update the configuration
updated_config = portkey.configs.update(
slug="CONFIG_SLUG",
name="Updated Config",
config={
"retry": {
"attempts": 3
},
"cache": {
"mode": "semantic"
}
}
)
print(updated_config){
"success": true,
"data": {
"version_id": "abe447e2-f6aa-4229-93b7-8ee3183b6667"
}
}portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update the configuration
updated_config = portkey.configs.update(
slug="CONFIG_SLUG",
name="Updated Config",
config={
"retry": {
"attempts": 3
},
"cache": {
"mode": "semantic"
}
}
)
print(updated_config){
"success": true,
"data": {
"version_id": "abe447e2-f6aa-4229-93b7-8ee3183b6667"
}
}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-log-export-guide-1773064217.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?