UPDATE: YES, replacing setModel() with set_model() in API calls DOES resolve the issue. Earlier reply was based on preliminary testing.
No, replacing the documented function name setModel() with the function name suggested (set_mode()) did not resolve the issue. The issue is not resolved.
Including $query->setModel( ‘text–davinci–003‘ ); as documented breaks calls