How to update settings using python client

I would like to set the mjpegServerScreenshotQuality and mjpegServerFramerate settings. The update_settings method is given for this: https://appium.io/docs/en/commands/session/settings/update-settings/

I can’t figure out what format to use, current code:

driver_settings = dict(
            mjpegServerScreenshotQuality=10,
            mjpegServerFramerate=0
)

appium_driver = webdriver.Remote(f'http://127.0.0.1:{APPIUM_PORT}/wd/hub', desired_caps)
appium_driver.update_settings(driver_settings)

But after using the update method the server gives a response with the settings unchanged:

2022-01-15 00:53:17:429 [WD Proxy] Matched '/appium/settings' to command name 'updateSettings'
2022-01-15 00:53:17:430 [WD Proxy] Proxying [POST /appium/settings] to [POST http://127.0.0.1:4921/session/205F8F02-50BA-4276-8A92-E52571B8884F/appium/settings] with body: {"settings":{"mjpegServerScreenshotQuality":25,"mjpegServerFramerate":25}}
2022-01-15 00:53:17:435 [WD Proxy] Got response with status 200: {"value":{"boundElementsByIndex":false,"mjpegServerFramerate":25,"screenshotOrientation":"auto","reduceMotion":false,"elementResponseAttributes":"type,label","screenshotQuality":1,"mjpegScalingFactor":100,"keyboardPrediction":0,"defaultActiveApplication":"auto","mjpegServerScreenshotQuality":25,"defaultAlertAction":"accept","keyboardAutocorrection":0,"useFirstMatch":false,"shouldUseCompactResponses":true,"customSnapshotTimeout":15,"dismissAlertButtonSelector":"","activeAppDetectionPoint":"64.00,64.00","snapshotMaxDepth":50,"waitForIdleTimeout":10,"includeNonModalElements":false,"acceptAlertButtonSelector":"","animationCoolOffTimeout":2},"sessionId":"205F8F02-50BA-4276-8A92-E52571B8884F"}

full logs: https://gist.github.com/sSpockderpantss/4f6f7851d3dc597a2c6d746ebd64a959

How should I use the method?

issue is resolved on appium2